Do this work ?
#4

Quote:
Originally Posted by Bearfist
Very Helpful man!
tstststs
Quote:
Originally Posted by Bearfist
Could this work...@ home everybody sleeps
....
To that work ?
Short question = short answer!

Quote:
Originally Posted by Bearfist
could you say how I have to do it ?
now here you go \/ \/

pawn Код:
Top,
new drugdealer;

public OnGameModeInit()
{
    drugdealer=INVALID_PLAYER_ID;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp("/ddealer",cmdtext,true) == 0)
  {
    if(drugdealer[playerid] == INVALID_PLAYER_ID)
        drugdealer=playerid,
        SendClientMessage(playerid,COLOR_YELLOW,"What Up Thug...Get Some Drugs by Press /drughelp");
    else
        SendClientMessage(playerid,COLOR_RED,"We Already Have A DrugDealer...We don't need another more!");
    return 1;
  }
}

Also,
public OnPlayerDisconnect(playerid, reason)
{
    if(playerid==drugdealer)
        drugdealer=INVALID_PLAYER_ID;
}
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)