Menu

List of functions

Vladimir

List of functions

Function Description
name Returns server name
game Returns game of the server
mode Returns mode on the server
world_rank Returns current world rank of the server
balcan_rank Returns current balcan rank of the server
players Returns online players
slots Returns number of slots
status Returns current status of the server (Offline/Online)
players_list Returns list of online players in array
server_added Returns date when server was added
server_adder Returns server adder
server_owner Returns server owner
country Returns country
country_flag Returns image url of country flag
best_rank Returns the best rank
worst_rank Returns the worst rank
map Returns current map
last_map Returns last map
map_image Returns image url of current map
day_graph Returns image url of daily players graph
week_graph Returns image url of weekly players graph
month_graph Returns image url of monthly players graph
rank_graph Returns image url of server rank for past month
daily_av_players Returns average number of players daily
weekly_av_players Returns average number of players weekly
monthly_av_players Returns average number of players monthly
montly_av_rank Returns average rank for past month

Function notes

- status
This function returns words like "Offline" or "Online"

- country_flag
This function returns image url of country flag.
Example output:
http://static.gametracker.rs/flags/RS.png etc.

- map_image
It returns image url of current map
Example output:
http://banners.gametracker.rs/map/cs/zm_forza.jpg etc.

- players_list
This function returns info of online players like:
score
time playing
player nick

To use it correctly you need to do something like this:

$ip = '';

$Players = array();
$Players = ServerInfo($ip, 'players_list');

foreach($Players as $Player) {
    echo $Player['nick'];
    echo $Player['score'];
    echo $Player['time'];
}

If you know better way, do it. :)


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.