SRCDS Steam group


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need a PHP class to check RCON for cs1.6
#18
of course it does support it !

i run a similar PHP class for SOURCE ENGINE games and it works perfectly

PHP Code:
function rcon_command($ip$port$password)
        {
            
$ip $_POST["ip"];
            
$port $_POST["port"];
            
$password $_POST["rcon"];
            
$requestId 1;
            
$s2 '';
            
$socket = @fsockopen ('tcp://'.$ip$port$errno$errstr15);
            if (!
$socket)
                return 
0;
            
$data pack("VV"$requestIdSERVERDATA_AUTH).$password.chr(0).$s2.chr(0);
            
$data pack("V",strlen($data)).$data;        
            
fwrite ($socket$datastrlen($data));
................ 

the only obvious difference between the 2 RCON CLASS is one is using UDP:// and the other TCP://
Reply


Messages In This Thread
RE: Need a PHP class to check RCON for cs1.6 - Iseult - 01-07-2010, 01:53 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)