31.08.2018, 19:05
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
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