wait so you've tried
because when I try this it works but the only problem is the arguments passed doesnt show upPHP Code:
if (args[0] == "rcon")
{
arguments = "";
for(i = 3; i < args.size; i++)
arguments += args[i];
logPrint("[RCON] ["+self.name+"] used rcon command ["+args[1]+"] with args ["+arguments+"]");
}