12.07.2010, 08:17
Hello, i need a new OnPlayerUpdate speedometer formula. Because the one i have is pretty buggy. When you turn for ex. to left your speed grows, when you turn to right - the speed drops.
Here is my formula:
I also use this on cops speedometer( to catch people with speed over 90 ).
Maybe some one could share the formula?
Here is my formula:
Код:
GetSpeed(id) { new Float:s[4]; GetVehicleVelocity(GetPlayerVehicleID(id),s[0],s[1],s[2]); return floatround(1.61*floatsqroot(floatabs(floatpower(s[0]+s[1]+s[2],2)))*100); }
Maybe some one could share the formula?