How to check what is the distance from the player to the ground?
#1

I have been trying to figure out how can I check what is the distance from me to the ground but no success.
Is there a way to check the distance from me to the ground when I'm in the air?
Thanks anyways for helping
Reply
#2

PHP код:
new Float:mxFloat:myFloat:mzFloat:nzFloat:dist;
GetPlayerPos(playerid,mx,my,mz);
MapAndreas_FindZ_For2DCoord(mx,my,nz);
dist VectorSize(0.0,0.0,mz-nz); 
//edit use MapAndreas_FindZ_For2DCoord
Reply
#3

What is the include for that?
Reply
#4

That's the MapAndreas plugin.

http://forum.sa-mp.com/archive/index.php/t-275492.html

You could also check out the ColAndreas plugin in my signature for a more advanced plugin, but if you only need it for ground height use MapAndreas.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)