12.03.2012, 15:32
Hello,
I have a little problem with a block command system, I searched for it but I couldn't find an answer.
So I decided to ask.
The problem is the following:
In my gamemode I have restricted players of using any kind of commands such as teleports, weapons and other things while they are in stunt or dm with " new BlockCMD[MAX_PLAYERS] = 0; ".
Everything works well when the commands are in the gamemode but once they are in a filterscript I can't block them.
So my question is, is there a way to block the commands globally once a players enters a stunt or dm zone even dough the commands are in a filterscript?
Here is some code so you guys understand what I'm talking about.
PD: I tried putting the " new BlockCMD[MAX_PLAYERS] = 0; " in a include but that didn't workout.
I hope you guys could help me.
Thanks
Caribe88
I have a little problem with a block command system, I searched for it but I couldn't find an answer.
So I decided to ask.
The problem is the following:
In my gamemode I have restricted players of using any kind of commands such as teleports, weapons and other things while they are in stunt or dm with " new BlockCMD[MAX_PLAYERS] = 0; ".
Everything works well when the commands are in the gamemode but once they are in a filterscript I can't block them.
So my question is, is there a way to block the commands globally once a players enters a stunt or dm zone even dough the commands are in a filterscript?
Here is some code so you guys understand what I'm talking about.
Code:
new BlockCMD[MAX_PLAYERS] = 0; CMD:red(playerid,params[]) { if(BlockCMD[playerid] == 1)return SendClientMessage(playerid, X11_RED, "Command Block Activated to exit type /exit"); SetPlayerColor(playerid, X11_RED); return 1; }
I hope you guys could help me.
Thanks
Caribe88