Speedometer formula for OnPlayerUpdate
#1

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:
Код:
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); }
I also use this on cops speedometer( to catch people with speed over 90 ).

Maybe some one could share the formula?
Reply


Messages In This Thread
Speedometer formula for OnPlayerUpdate - by wups - 12.07.2010, 08:17
Re: Speedometer formula for OnPlayerUpdate - by [TDM]Relax - 12.07.2010, 08:46
Re: Speedometer formula for OnPlayerUpdate - by wups - 13.07.2010, 09:02
Re: Speedometer formula for OnPlayerUpdate - by [XST]O_x - 13.07.2010, 09:04
Re: Speedometer formula for OnPlayerUpdate - by Betamaster - 13.07.2010, 09:12
Re: Speedometer formula for OnPlayerUpdate - by wups - 13.07.2010, 09:27
Re: Speedometer formula for OnPlayerUpdate - by RyDeR` - 13.07.2010, 11:35
Re: Speedometer formula for OnPlayerUpdate - by Jeffry - 22.07.2010, 13:23
Re: Speedometer formula for OnPlayerUpdate - by [XST]O_x - 22.07.2010, 13:28
Re: Speedometer formula for OnPlayerUpdate - by Jeffry - 22.07.2010, 14:51

Forum Jump:


Users browsing this thread: 5 Guest(s)