Help with the cmd of dm
#10

Start using PVars. They're meant to be used for things like this.

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)
and whenever the player exits the DM put

pawn Код:
SetPVarInt(playerid, "IsInDM", 0);
// OR
DeletePVar(playerid, "IsInDM");
Reply


Messages In This Thread
Help with the cmd of dm - by waim - 30.07.2010, 21:51
Re: Help with the cmd of dm - by Dolph - 30.07.2010, 21:59
Re: Help with the cmd of dm - by waim - 30.07.2010, 22:26
Re: Help with the cmd of dm - by Steven82 - 30.07.2010, 23:44
Re: Help with the cmd of dm - by waim - 31.07.2010, 01:52
Re: Help with the cmd of dm - by waim - 31.07.2010, 10:11
Re: Help with the cmd of dm - by Niixie - 31.07.2010, 10:15
Re: Help with the cmd of dm - by waim - 31.07.2010, 10:20
Re: Help with the cmd of dm - by Cameltoe - 31.07.2010, 10:34
Re: Help with the cmd of dm - by Vince - 31.07.2010, 11:21

Forum Jump:


Users browsing this thread: 3 Guest(s)