[HELP] Disable Command
#1

Where to put in "You cannot use that command in jail" (He cant use any commands in jail)...

So if i am in jail and try to use /kill then it should say "You cannot use that command in jail"

Here is the Script
Reply
#2

pawn Код:
new jailed[MAX_PLAYERS]; // Global variable
On your jail command, now:
pawn Код:
jailed[id] = 1; // Id which were jailed
On your commands you want to forbidden:
pawn Код:
if(jailed[playerid]== 1) return SendClientMessage(...);
Reply
#3

try this:

http://pastebin.com/fSV4V0Sa

edit: at the SendClientMessage, you should add return before it. So: return SendClientMessage(playerid......... etc.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)