GameTracker.rs API Script - Server Info Wiki
PHP script that uses GameTracker.rs API to retrieve server information
Brought to you by:
heroj389
It's not complicated to use this script, all you have to do is parse two parameters to script and everything else is magic.
Function looks like this:
ServerInfo($ip, $type)
Let's see the parameters:
1. $ip - this is where you type ip adress of the server. Note that server needs to be added on GameTrackers.rs !
You can directly parse IP:
ServerInfo('193.104.68.2:27035', $type)
or you can do by storing it in variable:
$ip = '193.104.68.2:27035' ServerInfo($ip, $type)
2. $type - this parameter has its own "words" or "functions". "Functions" are published in wiki page called "List of functions".
ServerInfo($ip, 'name')
this returns server name. All functions are listed here: https://sourceforge.net/p/gt-api-sinfo/wiki/List%20of%20functions/