neearest airport show
#4

Quote:
Originally Posted by PMH
Посмотреть сообщение
get cordinates of all three airports
Use GetPlayerDistanceFromPoint and check which is the smallest one, then put player checkpoint to it
This is indeed the most efficient way. Store them in an array called Airports or something along those lines and loop through them.

SA-MP doesn't really offer the ability to reference land marks straight off the bat in the script. To do this, you need to mark the points within the script as suggested above, and then go from there with the code.
Reply


Messages In This Thread
neearest airport show - by ManGoe - 15.09.2014, 06:51
Re: neearest airport show - by ManGoe - 16.09.2014, 10:04
Re: neearest airport show - by PMH - 16.09.2014, 10:19
Re: neearest airport show - by WalterWhite - 16.09.2014, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)