Checking if Player is near position
#1

Hi,

i've got these coordinates:

Код:
new Float:Destinations[2][3] = {
	{1730.7352,721.9785,10.8203},
	{1800.2280,-2036.9574,13.5235}
};
How to check if the player is near any of them?
Reply
#2

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply
#3

That won't help him pretty much bro-...

Here:

Код:
for(new j=0; j<2;j++)
{
      if(IsPlayerInRangeOfPoint(playerid,10.0,Destinations[j][0],Destinations[j][1],Destinations[j][2]))
      {
             // Your code here
      }
}
Reply
#4

Thanks for help Lucky!
Reply
#5

You're welcome.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)