bury
Active Member
- Joined
- Jul 27, 2008
- Messages
- 421
- Solutions
- 7
- Reaction score
- 25
Hello.
I changed the idle time from 15 min to 2h. I want to show all the 100% players online in my website, but I want to show only active players in otservlist.org, do you know how can I do this?
I'm using tfs 0.4 and gesior 2012 last updated. If I go to who is online now:
And both 2 players have been afk for 30 or 40 min.
whoisonline.php:
Thanks!
bumpp
bumpp
bump
I changed the idle time from 15 min to 2h. I want to show all the 100% players online in my website, but I want to show only active players in otservlist.org, do you know how can I do this?
I'm using tfs 0.4 and gesior 2012 last updated. If I go to who is online now:
Code:
Currently 2 players are online - 2 are active and 0 is AFK on Server.
And both 2 players have been afk for 30 or 40 min.
whoisonline.php:
PHP:
//server status - someone is online
$main_content .= '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR="'.$config['site']['vdarkborder'].'"><TD CLASS=white><B>Server Status</B></TD></TR><TR BGCOLOR='.$config['site']['darkborder'].'><TD><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=1><TR><TD>Currently '.$number_of_players_online.' players are online - <b>'.$config['status']['serverStatus_players'] .' ' . (($config['status']['serverStatus_players'] > 1) ? 'are' : 'is') . ' active</b> and <b>'.($number_of_players_online-$config['status']['serverStatus_players']).' ' . (($number_of_players_online-$config['status']['serverStatus_players'] > 1) ? 'are' : 'is') . ' AFK</b> on <b>'.htmlspecialchars($config['site']['worlds'][$world_id]).'</b>.</TD></TR></TABLE></TD></TR></TABLE><BR>';
Thanks!
bumpp
bumpp
bump
Last edited by a moderator: