Quote Originally Posted by Kemi View Post
wait so you've tried
PHP Code:
if (args[0] == "rcon")
    {
        
arguments "";
        for(
3args.sizei++)
            
arguments += args[i];
        
logPrint("[RCON] ["+self.name+"] used rcon command ["+args[1]+"] with args ["+arguments+"]");
    } 
because when I try this it works but the only problem is the arguments passed doesnt show up
You can't read rcon commands with CodeCallback_PlayerCommand.
But you can set the command as a cvar and read the value in cod like the admin functions in AWE and other mods.

Edit: i could make a new function for this.