not able to command filterscript
#1

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?

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


Forum Jump:


Users browsing this thread: 2 Guest(s)