cant do commands when...
#2

On top of your script put this:

pawn Код:
new CanExecuteCommand[MAX_PLAYERS] = 0;

Put this under your /dm command:

pawn Код:
CanExecuteCommand[playerid] = 1;


Then for teleports or any other commands

pawn Код:
if(CanExecuteCommands[playerid] == 1) return Do_Something

Then for /quit add this:

pawn Код:
CanExecuteCommand[playerid] = 0;

Hope I helped.

For the reset use
pawn Код:
RemovePlayerWeapons
(I believe?)
Reply


Messages In This Thread
cant do commands when... - by omer5198 - 14.01.2011, 14:10
Re: cant do commands when... - by alpha500delta - 14.01.2011, 14:26

Forum Jump:


Users browsing this thread: 1 Guest(s)