![]() |
[REQUEST] does anyone have something like this?
shows online/ofline status for Login server and Game Server
shows online users shows number of accounts / characters shows number of clans http://l2.rivulusgames.com/7.JPG module for joomla =S thx. :oops: |
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] |
doesnt show users =(
|
That's easy jtomasrl..
Simply do a query, in SQL.. where you compare two fields.. logout and login. If one is newer than the other.. players are online or offline accordingly. |
i dont think is as simple like that :S
how can mssql know if a player is online or offline :S |
Code:
select char_name as Char from user_data where login>logout |
| All times are GMT. The time now is 15:26. |