14.04.2012, 05:52
If you're using ZCMD, just set a variable on a command and then use OnPlayerCommandReceived to check if the variable is set and then deny the command. Here is an example:
Then just set notele to 0 once they leave the DM.
pawn Код:
new notele[MAX_PLAYERS char];
CMD:dmarea(playerid, params[])
{
//.......
notele{playerid} = 1;
return 1;
}
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(notele{playerid} == 1)
{
SendClientMessage(playerid, -1, "You cannot teleport because you're in a DM");
return 0;
}
return 1;
}

