PDA

View Full Version : A little help with gps


Foxer123456
31/08/2018, 07:05 PM
Hey guys how can i do it ?

How to get coordinates from the player to a certain point and show it in the table

maybe with this one ?

stock GetDistance( Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2 )
{
return floatround( floatsqroot( ( ( x1 - x2 ) * ( x1 - x2 ) ) + ( ( y1 - y2 ) * ( y1 - y2 ) ) + ( ( z1 - z2 ) * ( z1 - z2 ) ) ) ) );
}

https://imgur.com/a/Mf6sFRV

CodeStyle175
31/08/2018, 07:07 PM
GetPlayerDistanceFromPoint is a default function for that

Foxer123456
31/08/2018, 07:08 PM
oh ty dude