PWadmin script

Results 1 to 11 of 11
  1. #1
    Valued Member rajawelas is offline
    MemberRank
    Sep 2010 Join Date
    in Your Heart,Location
    149Posts

    PWadmin script

    hello, anyone can share me a script pwadmin to see player id is online now?

    example: id 32 is online?

    any suggest?


  2. #2
    Apprentice GMmomo is offline
    MemberRank
    Jun 2011 Join Date
    13Posts

    Re: PWadmin script

    try search first

  3. #3
    Genesis?Is it a new drug? renan7899 is offline
    MemberRank
    Apr 2010 Join Date
    BrazilLocation
    519Posts

    Re: PWadmin script

    If you want ID, you can do that with PHP... Just need to program it to read MySQL 'point' table. Romulan has created some admins scripts... there's one script that shows the online GMs, you just need to remove the GM limitation from the query.

    I'll do it for you... here:


    PHP Code:
    <? //=====Script by Romulan=====// 

    ?>
    <html>
    <head>
    <title> </title>
    </head>
    <body bgcolor="white">
    </body>
    <html>
    <?
    $Host       
    =       '192.168.1.65';
    $DBLogin    =       'root';
    $DBPass     =       'renan';
    $DBName     =       'dbo';
        
    $conn mysql_connect($Host$DBLogin$DBPass);
    $db   mysql_select_db($DBName$conn);

    if (!
    $conn) {
    echo 
    "Database connection error. Details  : " mysql_error();
       exit;
    }
    if (!
    $db) {
       echo 
    "The database doesn't exists. Details  : " mysql_error();
       exit;
    }
    $sql "SELECT * FROM users WHERE users.id IN ( SELECT uid FROM point WHERE zoneid !=' ')";
    $result mysql_query($sql);

    if (!
    $result) {
       echo 
    "Error to send sql query ($sql) to the database. Details : " mysql_error();
       exit;
    }
    if (
    mysql_num_rows($result) == 0) {
       echo 
    "<center><strong><u><font color=red><b>THERE IS NO ACCOUNTS ONLINE.</b></font></u></strong>";
       exit;
    }

    $affichage="<center><strong><font face=\"Arial, Helvetica, sans-serif\" color=\"#006600\"><u>Online Accounts</u></font></strong><br/><table><th>ID</th><th>-&nbsp;&nbsp;&nbsp;&nbsp;Login</th>";
    while (
    $row mysql_fetch_assoc($result)) {

    $affichage.="</tr>";
       
    $affichage.="<td>&nbsp;".$row["ID"]."&nbsp;&nbsp;-</td>";
       
    $affichage.="<td>&nbsp;&nbsp;&nbsp;".$row["name"]."</td>";
       
    $affichage.="</tr>";
    }
    $affichage.="</table></center>";

    mysql_free_result($result);

    echo 
    $affichage;
    ?>
    PS: Don't forget to change the Host, DBLogin, and DBPass.

    This will only work if you save in a .php document and put it in your apache with PHP installed

    I hope it can help '-'
    Last edited by renan7899; 12-07-11 at 04:30 PM.

  4. #4
    Valued Member rajawelas is offline
    MemberRank
    Sep 2010 Join Date
    in Your Heart,Location
    149Posts

    Re: PWadmin script

    can that use in jetty?

  5. #5
    Account Upgraded | Title Enabled! [D@nte] is offline
    MemberRank
    Apr 2010 Join Date
    249Posts

    Re: PWadmin script

    This script or better the query-part DOES NOT give you any ID of an ONLINE player, it gives only the ACCOUNT ID of online players, furthermore it is a high risk to give out accountnames - depending on the country your website is hosted you could even run in law issuses!

  6. #6
    Genesis?Is it a new drug? renan7899 is offline
    MemberRank
    Apr 2010 Join Date
    BrazilLocation
    519Posts

    Re: PWadmin script

    Quote Originally Posted by [D@nte] View Post
    This script or better the query-part DOES NOT give you any ID of an ONLINE player, it gives only the ACCOUNT ID of online players, furthermore it is a high risk to give out accountnames - depending on the country your website is hosted you could even run in law issuses!
    His post is very confuse... He said that he want to see if THAT ID is online...

    I didn't understand exactly...

    Yeah, this script shows the account ID, but I thought only admins will see it.

    Well, what do you want, rejawelas? A GM Online/Offline script?
    Last edited by renan7899; 13-07-11 at 12:05 AM.

  7. #7
    Valued Member rajawelas is offline
    MemberRank
    Sep 2010 Join Date
    in Your Heart,Location
    149Posts

    Re: PWadmin script

    not but i want know who is online in my server, not only GM but another player,,, who play in my tested server.

  8. #8
    Valued Member rajawelas is offline
    MemberRank
    Sep 2010 Join Date
    in Your Heart,Location
    149Posts

    Re: PWadmin script

    thank that script is work for me

  9. #9
    Genesis?Is it a new drug? renan7899 is offline
    MemberRank
    Apr 2010 Join Date
    BrazilLocation
    519Posts

    Re: PWadmin script

    Quote Originally Posted by rajawelas View Post
    thank that script is work for me
    Nobody needs to know who is online in your server... To do that, you'll need to keep a script updating the online players constantly, that would be bad for your server performance.

    Even the official servers doesn't have that...

  10. #10
    Valued Member rajawelas is offline
    MemberRank
    Sep 2010 Join Date
    in Your Heart,Location
    149Posts

    Re: PWadmin script

    hehehhe... i need it for monitoring bad players in my server :)

    and where thread for another admin script, i want to test another script for my pw
    Last edited by rajawelas; 25-07-11 at 07:10 AM.

  11. #11
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: PWadmin script

    http://forum.ragezone.com/f694/littl...admins-748752/

    Tada But remember those script is recommanded for admin only. Unless you can modify them to make something for players or gm.



Advertisement