SA-MP Forums Archive
I want speedometer miles please. - 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: I want speedometer miles please. (/showthread.php?tid=652852)



I want speedometer miles please. - Charisma - 20.04.2018




Re: I want speedometer miles please. - Charisma - 20.04.2018

Dump


Re: I want speedometer miles please. - std - 20.04.2018

GetVehicleSpeed(vehicleid)
{
new Float:vx, Float:vy, Float:vz, Float:vel; // vehicle x y z
vel = GetVehicleVelocity(GetPlayerVehicleID(playerid), vx, vy, vz); // pythagoras square
vel = (floatsqroot(((vx*vx)+(vy*vy))+(vz*vz))* 181.5); // pythagoras square root vel * by magic number 181.5 by pottus
return vel; // vel is rounded anddnow return it
}

...(%i speed, vel)


There's 0.6 miles in 1 km, you do the maths.


Re: I want speedometer miles please. - Charisma - 20.04.2018

I want textdraw in image and code ..


Re: I want speedometer miles please. - Nizarh - 20.04.2018

Quote:
Originally Posted by Charisma
Посмотреть сообщение
I want textdraw in image and code ..
You want a lot of stuff, go and search for all of that by yourself.


Re: I want speedometer miles please. - Charisma - 20.04.2018

please i want small speedo miles textdraw