How to prevent this
#4

You'd need to add a variable such as:
pawn Код:
if(InDM[playerid] == 1) return SencDlientMessage(playerid,COLOR, "You can't use cmds in a death match.");
under every server command you have. To create the variable for a playerid, do this.
pawn Код:
new InDM[MAX_PLAYERS];
EDIT: If you have zcmd, I "think" you may be able to do this. Just add this callback.
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
       if(InDM[playerid] == 1) return SendClientMessage(playerid,COLOR, "You can't use commands while in a DM.");
       return 0;
}
Reply


Messages In This Thread
How to prevent this - by Dipto - 06.03.2014, 04:32
Re: How to prevent this - by GalaxyHostFree - 06.03.2014, 04:36
Re: How to prevent this - by Dipto - 06.03.2014, 04:53
Re: How to prevent this - by rangerxxll - 06.03.2014, 04:59
Re: How to prevent this - by SwisherSweet - 06.03.2014, 05:03
Re: How to prevent this - by rangerxxll - 06.03.2014, 05:07
Re: How to prevent this - by Dipto - 06.03.2014, 05:09
Re: How to prevent this - by rangerxxll - 06.03.2014, 05:36
Re: How to prevent this - by Dipto - 06.03.2014, 16:04

Forum Jump:


Users browsing this thread: 1 Guest(s)