18.03.2018, 18:11
Hello guys,
i use OnPlayerCommandReceived when i need to stop player from sending commands.
But i want to make exceptions for some commands like /pm .. Well i use this:
The problem is that player CAN use /pm but only "/pm" !!! Not "/pm id text" so player cant send pm anyway ..
Any idea?
i use OnPlayerCommandReceived when i need to stop player from sending commands.
But i want to make exceptions for some commands like /pm .. Well i use this:
Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(PlayerIsAFK[playerid] == true)
{
if(!strcmp(cmdtext,"/afk") || !strcmp(cmdtext,"/pm"))) return 1;
//some code...
return 0;
}
return 1;
}
Any idea?


