Posts: 7
Threads: 1
Joined: Jul 2007
Reputation:
0
Hey all,
I would like to know whether there's a faster way of processing custom RCON commands, except strcmp/strtok.
If so, could you give an example?
Thanks in advance,
VW
Posts: 424
Threads: 21
Joined: Jun 2008
Reputation:
0
search for rcmd, I made it a while back.
Posts: 7
Threads: 1
Joined: Jul 2007
Reputation:
0
I'm using DCMD already, but point is that the OnRconCommand doesn't have the playerid-parameter (because the Remote Console isn't a player, of course). That results in an "undefined symbol playerid" warning.
I'm wondering how you made that possible then?
Posts: 486
Threads: 15
Joined: Sep 2007
Reputation:
0
As far as I know you shouldn't use OnRconCommand. Just use OnPlayerCommandText. dcmd_rcon would be the correct define, and in that function you should use strcmp combinated with sscanf (or something else) to check the real 'command' he wants to execute. Nice example: /rcon kickall