HELP disableing teleports when in DM zones
#3

Quote:
Originally Posted by dice7
pawn Код:
new IsPlayerInDM[MAX_PLAYERS];

/*when player goes to dm*/
IsPlayerInDM[playerid] = 1;

public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/exitdm"))
  {
    IsPlayerInDM[playerid] = 0;
    SetPlayerPos(playerid, outside of dm);
  }
 
  if(IsPlayerInDM[playerid] != 0) return SendClientMessage(playerid, COLOR_RED, "Sorry, you can't use commands while in a dm zone. Type /exitdm to leave it");

  /*your other commands*/
}
lol thanks for the reply, but it didnt work

any other suggestions?
Reply


Messages In This Thread
HELP disableing teleports when in DM zones - by wilcock33 - 05.08.2009, 13:15
Re: HELP disableing teleports when in DM zones - by dice7 - 05.08.2009, 13:33
Re: HELP disableing teleports when in DM zones - by wilcock33 - 05.08.2009, 15:04

Forum Jump:


Users browsing this thread: 1 Guest(s)