SA-MP Forums Archive
feet distance - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: feet distance (/showthread.php?tid=395698)



feet distance - GoldZoroGrab - 27.11.2012

hey guys....

how to make feet distance??

i made a command /i to see players info so i don't know how to add feet distance

for example player is soooooooooooooooooooo near the feet for sure would bee 1-2 feet

and all of u know what is feet distance

so any helps pleasE?


Re: feet distance - Roko_foko - 27.11.2012

pawn Код:
GetPlayerPos(playerid,x,y,z);
GetPlayerPos(player2,x2,y2,z2);
new Float:distance=floatsqroot((x-x2)*(x-x2)+(y-y2)*(y-y2)+(z-z2)*(z-z2));



Re: feet distance - GoldZoroGrab - 27.11.2012

thanks toooo much broo

+REP


Re: feet distance - iggy1 - 27.11.2012

There also this function to help https://sampwiki.blast.hk/wiki/GetPlayerDistanceFromPoint


Re: feet distance - GoldZoroGrab - 27.11.2012

anyways,,, THX ALL

:3