How to make menu pop up when player is in range of point
#3

Код:
new InRangePlayer[MAX_PLAYERS];
Add another check:
Код:
InRangePlayer[playerid]==0 && IsPlayerInRangeOfPont(playerid,range,x,y,z)
If in range:
Код:
InRangePlayer[playerid]=1;
If not in range:
Код:
InRangePlayer[playerid]=0;
Код:
if(InRangePlayer[playerid]==0 && IsPlayerInRangeOfPont(playerid,range,x,y,z))
{
  InRangePlayer[playerid]=1;
  //sendmessage
}
else
{
  InRangePlayer[playerid]=0;
}
Reply


Messages In This Thread
How to make menu pop up when player is in range of point - by JoeDaDude - 31.12.2009, 13:44
Re: How to make menu pop up when player is in range of point - by jamesb93 - 31.12.2009, 13:56
Re: How to make menu pop up when player is in range of point - by Rac3r - 31.12.2009, 14:08

Forum Jump:


Users browsing this thread: 1 Guest(s)