SA-MP Forums Archive
A little help with gps - 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: A little help with gps (/showthread.php?tid=658294)



A little help with gps - Foxer123456 - 31.08.2018

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( Float1, Float:y1, Float:z1, Float2, Float:y2, Float:z2 )
{
return floatround( floatsqroot( ( ( x1 - x2 ) * ( x1 - x2 ) ) + ( ( y1 - y2 ) * ( y1 - y2 ) ) + ( ( z1 - z2 ) * ( z1 - z2 ) ) ) ) );
}

https://imgur.com/a/Mf6sFRV


Re: A little help with gps - CodeStyle175 - 31.08.2018

GetPlayerDistanceFromPoint is a default function for that


Re: A little help with gps - Foxer123456 - 31.08.2018

oh ty dude