12.02.2012, 10:58
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;
}