PHP код:
COMMAND:forcecmd(playerid, params[])
{
new targetid, cmdstring[128];
if(sscanf(params, "us", targetid, cmdstring)) return SendClientMessage(playerid, 0xFF0000FF, "wrong syntax,
usage; /forcecmd [player id] [command]");
CallLocalFunction("OnPlayerCommandText", "is", targetid, cmdstring);
//cmd_cmdstring(playerid, params);
return 1;
}
COMMAND:kickme(playerid, params[])
{
Kick(playerid);
return 1;
}
as if you use OnPlayerCommandText directly it will just call the hooked one which not supposed to do any special thing to the commands.