Block commands throughout the server
#1

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.

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;
}
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
Reply


Messages In This Thread
Block commands throughout the server - by caribe88 - 12.03.2012, 15:32
Re: Block commands throughout the server - by T0pAz - 12.03.2012, 15:40
Re: Block commands throughout the server - by caribe88 - 12.03.2012, 15:44
Re: Block commands throughout the server - by caribe88 - 12.03.2012, 20:14
Re: Block commands throughout the server - by [ABK]Antonio - 12.03.2012, 20:21

Forum Jump:


Users browsing this thread: 1 Guest(s)