09.09.2016, 15:42
You should use natives because they are faster
IsVehicleInRangeOfPoint could be done with GetVehicleDistanceFromPoint
In GetNearestVehicleByCoord you use IsVehicleInRangeOfPoint three times, make use of an additional variable and call it only once
For GetDistanceBetween2Points use the native VectorSize
IsVehicleInRangeOfPoint could be done with GetVehicleDistanceFromPoint
PHP Code:
#define IsVehicleInRangeOfPoint(%0,%1, %1 > GetVehicleDistanceFromPoint(%0,
For GetDistanceBetween2Points use the native VectorSize