hello, anyone can share me a script pwadmin to see player id is online now?
example: id 32 is online?
any suggest?
Printable View
hello, anyone can share me a script pwadmin to see player id is online now?
example: id 32 is online?
any suggest?
try search first
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:
PS: Don't forget to change the Host, DBLogin, and DBPass.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>- Login</th>";
while ($row = mysql_fetch_assoc($result)) {
$affichage.="</tr>";
$affichage.="<td> ".$row["ID"]." -</td>";
$affichage.="<td> ".$row["name"]."</td>";
$affichage.="</tr>";
}
$affichage.="</table></center>";
mysql_free_result($result);
echo $affichage;
?>
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 '-'
can that use in jetty?
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!
not but i want know who is online in my server, not only GM but another player,,, who play in my tested server.
thank that script is work for me
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
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.