not able to command filterscript - 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: not able to command filterscript (
/showthread.php?tid=152301)
not able to command filterscript -
reallifescript - 03.06.2010
Hello
Can some1 help me with a command I am in need of
It is the following idea
I fill in (as admin) /nocmd 0
Than player 0 is not able to use any of these commands
Can some1 help me with this?
Re: not able to command filterscript -
Joe_ - 03.06.2010
Top of script:
pawn Код:
new cmdstate[MAX_PLAYERS];
Inside your command that makes the player not able to use commands:
pawn Код:
cmdstate[playerid] = 0 // false
OnPlayerConnect and OnPlayerDisconnect:
pawn Код:
cmdstate[playerid] = 1; //True
Under OnPlayerCommandText
pawn Код:
if(cmdstate[playerid] == 0) return 0;
//Then all your other stuff
Hope that helps, it's just a basic array.