23.11.2014, 09:46
How to stop commands for every player who is in the jail?
Use what he said.
Put "if(YourCheckIfPlayerIsInJailHere) return 0;" under "public OnPlayerCommandReceived()". |
public OnPlayerCommandText(playerid, cmdtext[])
{
if(/*Put your jail variable here*/)
{
return 0;
}
return 0;
}
Do as they both said, but the callback is "OnPlayerCommandText".
So it would be: pawn Код:
|