30.08.2009, 02:53 
	
	
	
		Nice tutorial.
I'd replace/fix your GetDistanceToPoint function though (Why use slow functions when you can use standard operators ).
).
	
	
	
	
I'd replace/fix your GetDistanceToPoint function though (Why use slow functions when you can use standard operators
 ).
).Code:
#define PlayerToPoint(%0,%1,%2,%3,%4,%5,%6) \ (((%0 - %3) * (%0 - %3)) + ((%1 - %4) * (%1 - %4)) + ((%2 - %5) * (%2 - %5)) <= %6 * %6) //by Y_less - http://forum.sa-mp.com/index.php?top...#post_distance


