20.04.2018, 15:52
I want speedometer miles please.
20.04.2018, 16:02
Dump
20.04.2018, 16:03
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.
{
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.
20.04.2018, 16:22
I want textdraw in image and code ..
20.04.2018, 16:25
20.04.2018, 16:34
please i want small speedo miles textdraw
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)