How to disable commands?
#1

How i can disable commands ''/tele'' and "/gotopos" for player when player "hitman = 1" but allow that commands when player "hitman = 0" ? Sorry for my bad english...
Reply
#2

if(hitman == 1) return 1;

Add in /tele and /gotopos
Reply
#3

At the top of your script:
pawn Code:
new Hitman[MAX_PLAYERS];
To make a player a hitman:
pawn Code:
Hitman[playerid] = 1;
Put this into your command:
pawn Code:
if(Hitman[playerid] == 1)
{
//The Player is a hitman
}
else
{
//The Player isn't a hitman
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)