Server status 1.0

Results 1 to 7 of 7
  1. #1
    Apprentice chimchar is offline
    MemberRank
    Jan 2009 Join Date
    24Posts

    Server status 1.0

    Hello Ragezoners
    i made a server status script for Gunz private server :)
    So Rate it 0/10
    Code:
    <?php
    //MSSQL Connection
    $con = mssql_connect("COMPUTER NAME\SQLEXPRESS","sa","PASSWORD");
    if (!$con)
        {
        die('Couldnt not connect: ' . mssql_error());
        }
        
    mssql_select_db("GunzDB");
    
    //Server status
    <img src="http://status.blackout-gaming.net/status.php?dns=YOURIP&port=6000&style=7"/></a>
    //Users Online
    $getcurp = mssql_query("SELECT CurrPlayer,MaxPlayer FROM ServerStatus");
    $getcur = mssql_fetch_array($getcurp);
    Echo "<span style=\"color:#f27800\">Users online on YOURGunz: </span>";
    echo $getcur['CurrPlayer'];
    echo "/";
    echo $getcur['MaxPlayer'];


  2. #2
    Account Upgraded | Title Enabled! xgemini is offline
    MemberRank
    Jun 2009 Join Date
    CanadaLocation
    218Posts

    Re: Server status 1.0

    Not working?

    Please release whole thing, and where is status.php?

    And the picture?

  3. #3
    mikethemak is offline
    MemberRank
    Apr 2008 Join Date
    Ragezone Spam SectionLocation
    1,019Posts

    Re: Server status 1.0

    I dunno about the server status part, i removed that. But i am using the "users online" part and it works perfectly fine.



    Remove
    Code:
    //Server status
    <img src="http://status.blackout-gaming.net/status.php?dns=YOURIP&port=6000&style=7"/></a>

  4. #4
    Account Upgraded | Title Enabled! Abstrakt is offline
    MemberRank
    Mar 2008 Join Date
    Vancouver B.C.Location
    645Posts

    Re: Server status 1.0

    Quote Originally Posted by mikethemak View Post
    I dunno about the server status part, i removed that. But i am using the "users online" part and it works perfectly fine.



    Remove
    Code:
    //Server status
    <img src="http://status.blackout-gaming.net/status.php?dns=YOURIP&port=6000&style=7"/></a>
    You should change the title to Users Online Script; because people might get confused..

  5. #5
    Account Upgraded | Title Enabled! xgemini is offline
    MemberRank
    Jun 2009 Join Date
    CanadaLocation
    218Posts

    Re: Server status 1.0

    Yeah agreed!

  6. #6
    mikethemak is offline
    MemberRank
    Apr 2008 Join Date
    Ragezone Spam SectionLocation
    1,019Posts

    Re: Server status 1.0

    The title? I added it to the register page lol, just moved the script and then moved a server status script in as well. Didnt feel like making a seperate page.

  7. #7
    <?="Hello World.";?> wutyes is offline
    MemberRank
    Feb 2008 Join Date
    251Posts

    Re: Server status 1.0

    l2 use fsockopen...

    php.net



Advertisement