• RCON Class
    2 replies, posted
Anyone can help to modificate [url=http://fremnet.net/article/199/source-rcon-class]current[/url] rcon php class for rust? If use it without modifications, getting errors like: [CODE]Authenticated string(36) "Command not found: global."status""[/CODE]
Change line 104 in rcon.class.php: [code] $Command = trim(str_replace('"','', $Command));[/code] Then try something like this as a test: [code]//Send a request echo "<pre>"; $status = explode("\n", $r->rconCommand('status')); $hostname = substr($status[0], 10); $players = substr($status[3], 10); echo $players; echo $hostname; echo "</pre>";[/code] Using it to retrieve your server name and player count via status is slow as shit though, so I'd recommend using [url=https://github.com/xPaw/PHP-Source-Query-Class]xPaw's Query Class[/url] instead.
[url]http://facepunch.com/showthread.php?t=1384264[/url]
Sorry, you need to Log In to post a reply to this thread.