Can be done in php...
I did something like this for MobL2 server (without access to server files :P) long time ago. Script shows how many users was online, login/game server status (sockets - peace of cake)... If i could have access to server files i could do script to number of users too =) PHP rulz =)
Heres script for sockets:
[php:1:b5d3371218]<?
$IP = "Ip address"; # <--- PUT HERE IP
$PORTL = "2106"; # YOU CAN CHANGE HERE PORT
$PORTG = "7777"; # YOU CAN CHANGE HERE PORT
$TIMEOUTSERV = "0.3";
$STATLOGIN = @FSOCKOPEN($IP, $PORTL, $ERRNO, $ERRSTR, $TIMEOUTSERV);
$STATGAME = @FSOCKOPEN($IP, $PORTG, $ERRNO, $ERRSTR, $TIMEOUTSERV);
IF (!$STATLOGIN) {
ECHO "Login offline";
} ELSE {
ECHO "Login online";}
@FCLOSE($STATLOGIN);
IF (!$STATGAME) {
ECHO "Game offline";
} ELSE {
ECHO "Game online";}
@FCLOSE($STATLOGIN);
?>[/php:1:b5d3371218]
|