cant do commands when...
#1

i want to make a minigun place or a war place but i dont know how to do that they wont be able to do any command exept quit command...
if i will let them teleport where ever they want they will still have there weapons....
so i need help on one of those two things:
1) dont do commands exept quit commands...
2) reset weapons when teleporting from the war/minigunplace (without another command like /war quit...)
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)