09.10.2018, 23:04
...Or if you wish to block just some commands:
Put:
In the command you wish to block.
And:
In OnPlayerCommandRecieved.
Obviosuly pvars are just an idea. You can use tick count instead if you wish.
Put:
pawn Код:
SetPVarInt(playerid,"CmdTime",GetTickCount()+10000);//10000 stands for 10 seconds
And:
pawn Код:
if(GetPVarInt(playerid,"CmdTime")>GetTickCount()) return SendClientMessage(playerid,-1,"* Please wait before using this command again.");
Obviosuly pvars are just an idea. You can use tick count instead if you wish.