not able to command filterscript
#2


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.
Reply


Messages In This Thread
not able to command filterscript - by reallifescript - 03.06.2010, 15:44
Re: not able to command filterscript - by Joe_ - 03.06.2010, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)