If for DM's...
#7

Top of script:
pawn Код:
new indm[MAX_PLAYERS];
OnPlayerConnect AND kill command:
pawn Код:
indm[playerid] = 0;
When player entering the DM zone:
pawn Код:
indm[playerid] = 1;
The lines above creates a variable which its value is 1 if the player is on Deathmatch zone or 0 if he isn't.

Now, on the teles command add:
pawn Код:
if(indm[playerid]) return SendClientMessage(playerid,0xff0000ff,"You cannot use this command on this area, use /kill to quit");
This should work.
Reply


Messages In This Thread
Please help!! DM /exit! - by fie - 28.07.2011, 19:21
Re: If for DM's... - by Mean - 28.07.2011, 19:22
Re: If for DM's... - by fie - 28.07.2011, 19:25
Re: If for DM's... - by fie - 28.07.2011, 19:36
Re: If for DM's... - by Kingunit - 28.07.2011, 19:36
Re: If for DM's... - by fie - 28.07.2011, 19:50
Re: If for DM's... - by Amit_B - 28.07.2011, 21:31
Re: If for DM's... - by Kaperstone - 28.07.2011, 21:49

Forum Jump:


Users browsing this thread: 1 Guest(s)