31.07.2010, 11:21
Start using PVars. They're meant to be used for things like this.
In your command put this at the top:
and whenever the player exits the DM put
In your command put this at the top:
pawn Код:
if(GetPVarInt(playerid, "IsInDM") == 1)
return SendClientMessage(playerid, COLOR_RED, "You are already in the DM!");
SetPVarInt(playerid, "IsInDM", 1);
// rest of your code (SetPlayerPos etc)
pawn Код:
SetPVarInt(playerid, "IsInDM", 0);
// OR
DeletePVar(playerid, "IsInDM");