0 Members and 1 Guest are viewing this topic.
gsQuery is a PHP library that allows you to query various game servers for things like number of players, the players itself, current map etc. The main goal of this class is to support as many games as possible. So some game specific thinks cannot be fetched with this class yet.
That would be awesome mar77a.I found one that works for a few games including soldat but players dont work.http://www.tuts.net/~titulaer/rcon/webstatus.php
Sweet!!, thx chris the script is working perfectly
if ($PLAYER) { if (! empty ($result)) { $header = array ( 'player' => array ( 'name' => 'Player', 'width' => '%-32s' ), 'team' => array ( 'name' => 'Team', 'width' => '%-16s' ), 'score' => array ( 'name' => 'Score', 'width' => '%3d' ), 'ping' => array ( 'name' => 'Ping', 'width' => '%3d' ) ); read_byte ($result); if (strlen ($result) > 0) { $player_counter = 0; while (strlen ($result) > 0) { $player_counter = $player_counter + 1; read_byte ($result); $player[$player_counter]['player'] = parse_ase ($result); $player[$player_counter]['team'] = parse_ase ($result); parse_ase ($result); $player[$player_counter]['score'] = parse_ase ($result); $player[$player_counter]['ping'] = parse_ase ($result); parse_ase ($result); }; }; }; };
if ($PLAYER) { if (! empty ($result)) { $header = array ( 'player' => array ( 'name' => 'Player', 'width' => '%-32s' ), 'team' => array ( 'name' => 'Team', 'width' => '%-16s' ), 'score' => array ( 'name' => 'Score', 'width' => '%3d' ), 'ping' => array ( 'name' => 'Ping', 'width' => '%3d' ), 'time' => array ( 'name' => 'Time', 'width' => '%3d' ) ); read_byte ($result); if (strlen ($result) > 0) { $player_counter = 0; while (strlen ($result) > 0) { $player_counter = $player_counter + 1; read_byte ($result); $player[$player_counter]['player'] = parse_ase ($result); $player[$player_counter]['team'] = parse_ase ($result); parse_ase ($result); $player[$player_counter]['score'] = parse_ase ($result); $player[$player_counter]['ping'] = parse_ase ($result); $player[$player_counter]['time'] = parse_ase ($result); }; }; }; };