DM zone help???
#2

Код:
new indm;

indm = 0;



if(strcmp(cmdtext, "/minigun", true)==0)
{
  if(indm == 0)
  {
    indm = 1;
    give guns 'n shit
    SendClientMessage(playerid, 0xFF0000AA, "you entered to minigun");
  }
  else
  {
    SendClientMessage(playerid, 0xFF0000AA, "you already are in minigun");
  }
  return 1;
}

if(strcmp(cmdtext, "/exit", true)==0)
{
  if(indm == 1)
  {
    indm = 0;
    ResetPlayerWeapons(playerid);
    SendClientMessage(playerid, 0xFF0000AA, "you left from minigun");
    SpawnPlayer(playerid);
  }
  else
  {
    SendClientMessage(playerid, 0xFF0000AA, "you are not in minigun");
  }
  return 1;
}

and all teleports

if(strcmp(cmdtext, "/lva", true)==0)
{
  if(indm == 0)
  {
    setplayerpos
  }
  else
  {
    SendClientMessage(playerid, 0xFF0000AA, "you cant teleport because you are in dm");
  }
  return 1;
}
sorry for my bad english.
Reply


Messages In This Thread
DM zone help??? - by eleosreman - 25.05.2011, 16:40
Re: DM zone help??? - by Ernests - 25.05.2011, 18:11
Re: DM zone help??? - by eleosreman - 25.05.2011, 18:29
Re: DM zone help??? - by marinov - 26.05.2011, 02:16
Re: DM zone help??? - by eleosreman - 26.05.2011, 06:55
Re: DM zone help??? - by susanexpress1 - 26.05.2011, 07:19
Re: DM zone help??? - by Lorenc_ - 26.05.2011, 08:36
Re: DM zone help??? - by eleosreman - 26.05.2011, 10:24

Forum Jump:


Users browsing this thread: 6 Guest(s)