06.03.2014, 04:59
You'd need to add a variable such as:
under every server command you have. To create the variable for a playerid, do this.
EDIT: If you have zcmd, I "think" you may be able to do this. Just add this callback.
pawn Код:
if(InDM[playerid] == 1) return SencDlientMessage(playerid,COLOR, "You can't use cmds in a death match.");
pawn Код:
new InDM[MAX_PLAYERS];
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;
}