28.10.2009, 18:03
Quote:
Originally Posted by /^We(stie|z+[e|a
r)$/ ]
Quote:
|
You can send an rcon command to the server via this sdk, this is the function:
PHP Code:
function RCON($rcon, $command)
{
echo 'Password '.$rcon.' with '.$command;
if ($this->SendPacket('x '.$rcon.' '.$command) === false) {
throw new QueryServerException( 'Connection to ' . $this->szServerIP . ' failed or has dropped.' );
}
// Pop the first 11 bytes from the response;
$aReturnArray = fread( $this->rSocketID, 11 );
echo fread( $this->rSocketID, 11 );
return $aReturnArray;
}