neearest airport show
#1

How to get the players nearest airport and set the mission there?
It always set mission like 1000-2000m far i want to set it to the nearest airport
And i also want the textdraw of it
please help +rep for helpers
Reply
#2

0 replies
it seems no one interested in helping
Reply
#3

get cordinates of all three airports
Use GetPlayerDistanceFromPoint and check which is the smallest one, then put player checkpoint to it
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)