I've got problem. Does anybody know what is format for sending command to server? For example if i wanna kick somebody?
I saw this function in PHP:
1
2
3
4
5
6
7
2
3
4
5
6
7
function send_command($ip,$port,$rcon,$command) { 	$fp = @fsockopen("udp://".$ip, $port, $errno, $errstr); 	if ($fp){ 		$request = chr(1).chr(0).chr(242).chr(strlen($rcon)).$rcon.pack("S",strlen($command)).$command; 		fwrite($fp, $request); 	} }
I'm trying to make application in Lazarus (FreePascal) but all i need is to know format of packet to send... i have tried this:
1
myFormat := chr(1)+chr(0)+chr(242)+chr(1) + chr(Length(rcon)) + rcon + chr(Length(cmd)) + cmd;
1
2
2
WARNING: Failed RCon attempt from 127.0.0.1:53130 (cmd: ) NET: Received unknown or damaged msg (118, 127.0.0.1:53130)
edited 2×, last 21.07.11 12:09:05 pm