question about commands
#3

Make :

pawn Код:
new DM[MAX_PLAYERS]; // At Top
In OnPlayerConnect :

pawn Код:
DM[playerid] = 0;
And in your command :

pawn Код:
DM[playerid] = 1;
Then in the other commands where we will block the command if he is in the DM :

pawn Код:
if(DM[playerid] == 1) return SendClientMessage(playerid, -1, "You can't use this command in a DeathMatch!");
And in /exitdm add :

pawn Код:
DM[playerid] = 0;
Hope i helped.

EDIT : Too late.
Reply


Messages In This Thread
question about commands - by HurtLocker - 05.04.2013, 16:36
Re: question about commands - by L.Hudson - 05.04.2013, 16:39
Re: question about commands - by SilverKiller - 05.04.2013, 16:40
Re: question about commands - by HurtLocker - 05.04.2013, 16:44
Re: question about commands - by Ronaldo_raul™ - 05.04.2013, 16:45
Re: question about commands - by Pottus - 05.04.2013, 17:02

Forum Jump:


Users browsing this thread: 3 Guest(s)