feet distance
#1

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?
Reply
#2

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));
Reply
#3

thanks toooo much broo

+REP
Reply
#4

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

anyways,,, THX ALL

:3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)