29.04.2009, 21:29
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 ?
Bearfist
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;
}




