[HELP] "Botname" has reach/goal
#2

I would do something like this


pawn Код:
new bool:myBool = false; //this would be outside of everything

public OnPlayerUpdate(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 1.0, -304.9921,1504.3866,75.4736) && myBool == false)
    {
         if(IsPlayerNPC(playerid))
         {
              printf("xDrifterZx has start his Drift Practice");
              myBool = true;
         }
    }
    if(IsPlayerInRangeOfPoint(playerid, 1.0, -536.3560,1994.1652,60.3828) && myBool == true)
    {
         if(IsPlayerNPC(playerid))
         {
              printf("xDrifterZx has goal his Drift Practice");
              myBool = false;
         }
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] "Botname" has reach/goal - by Dr.Heinz - 12.02.2012, 10:55
Re: [HELP] "Botname" has reach/goal - by [ABK]Antonio - 12.02.2012, 10:58
Re: [HELP] "Botname" has reach/goal - by Dr.Heinz - 12.02.2012, 11:02
Re: [HELP] "Botname" has reach/goal - by Dr.Heinz - 12.02.2012, 11:14

Forum Jump:


Users browsing this thread: 1 Guest(s)