Do this work ?
#1

Could this work...@ home everybody sleeps
so can't testing >D....

I want to script that only One DrugDealer Is Allowed In my GunGame
and if another player wants to be a dealer he gets the message

We Already Have A DrugDealer...We don't need another more!

To that work ?

Код:
  if(strcmp("/ddealer",cmdtext,true) == 0)
  {
	GetPlayerName(playerid,name,sizeof(name));
	
	if(drugdealer[playerid] == 0)
  {
  drugdealer[playerid] = 1;
  SendClientMessage(playerid,COLOR_YELLOW,"What Up Thug...Get Some Drugs by Press /drughelp");
  }
  else if(drugdealer[playerid] >= 1)
  {
  drugdealer[playerid] = 0;
  SendClientMessage(playerid,COLOR_RED,"We Already Have A DrugDealer...We don't need another more!");
  }
  else
  {
  drugdealer[playerid] = 0;
  }
  return 1;
  }
Bearfist
Reply


Messages In This Thread
Do this work ? - by Bearfist - 29.04.2009, 21:29
Re: Do this work ? - by pen_theGun - 29.04.2009, 21:48
Re: Do this work ? - by Bearfist - 29.04.2009, 21:56
Re: Do this work ? - by pen_theGun - 29.04.2009, 22:19
Re: Do this work ? - by Bearfist - 30.04.2009, 05:27
Re: Do this work ? - by pen_theGun - 30.04.2009, 05:55
Re: Do this work ? - by D101h - 30.04.2009, 09:26
Re: Do this work ? - by Bearfist - 30.04.2009, 17:01

Forum Jump:


Users browsing this thread: 1 Guest(s)