29.05.2010, 21:50
First, excuse me for my bad English!
So, I use this option for my Speedometer
http://forum.sa-mp.com/index.php?topic=120115.0
Exist currently a faster stock?
So, I use this option for my Speedometer
Код:
stock GetPlayerSpeed(playerid,bool:kmh) // by misco { new Float:Vx,Float:Vy,Float:Vz,Float:rtn; if(IsPlayerInAnyVehicle(playerid)) GetVehicleVelocity(GetPlayerVehicleID(playerid),Vx,Vy,Vz); else GetPlayerVelocity(playerid,Vx,Vy,Vz); rtn = floatsqroot(floatabs(floatpower(Vx + Vy + Vz,2))); return kmh?floatround(rtn * 100 * 1.61):floatround(rtn * 100); }
Exist currently a faster stock?