block commands in jail help
#2

Put
pawn Код:
new InJail[MAX_PLAYERS];
On the top of the script
On top of every command:
pawn Код:
if(InJail[playerid] == 1) return SendClientMessage(playerid, -1, "You can't use this command, you are in jail.");
In /jail
pawn Код:
InJail[playerid] = 1;
And in /unjail
pawn Код:
InJail[playerid] = 0;
Reply


Messages In This Thread
block commands in jail help - by vegaltasendai - 09.09.2017, 19:26
Re: block commands in jail help - by alanhutch - 09.09.2017, 19:38
Re: block commands in jail help - by AmarPlayer - 09.09.2017, 19:41
Re: block commands in jail help - by vegaltasendai - 09.09.2017, 20:03
Re: block commands in jail help - by BadJih - 09.09.2017, 20:42
Re: block commands in jail help - by BadJih - 09.09.2017, 20:46

Forum Jump:


Users browsing this thread: 1 Guest(s)