20.03.2015, 22:03
There is probably better and more advanced ways to do this but I'll give you a simple soloution.
PS: This is just pseudo code.
You can work based on that now to block any cmd you want.
PS: This is just pseudo code.
Код:
new bool:CanUseStats[MAX_PLAYERS]; In command /stats { if(!CanUseStats[playerid]) return SendClientMessage(playerid, 0x0000FF, "You can't use this command!); } In /blockcmd { Use scanf to deal with params, you will need two, the player id and the command to block if(!strcmp(cmd, "stats", true)) { CanUseStats[player] = false; } }