How to disable commands? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to disable commands? (
/showthread.php?tid=252163)
How to disable commands? -
Ernests - 30.04.2011
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...
Re: How to disable commands? -
StreetGT - 30.04.2011
if(hitman == 1) return 1;
Add in /tele and /gotopos
Re: How to disable commands? -
miokie - 30.04.2011
At the top of your script:
To make a player a hitman:
Put this into your command:
pawn Code:
if(Hitman[playerid] == 1)
{
//The Player is a hitman
}
else
{
//The Player isn't a hitman
}