[FilterScript] Trip-o-Meter - Save vehicle KM!
#9

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
Well if I could try to do a suggestion, I'm sure you could find the function to retrieve the KM/h of a vehicle in a decent speed-o-meter FS, so you could try calling that function every ONE second, then divide that by 3.6 (The transfer rate from KM/h to m/s) and add it to a specific floating number. If you need some help with floats, I'd be glad to as they interest me a lot
Yeah, I just have one, I made this:

pawn Код:
if(GetVehicleSpeed(vehicleid) > 10)
{
    Metros[vehicleid] += floatround(floatdiv(GetVehicleSpeed(vehicleid), 3.6));
}
But meters goes from 6 from 6 depending on the speed, which is nice.

I don't know if is that what you told me to do, becouse right now I'm going to change 3.6 to something bigger..

Thanks for help mate

EDIT:

Kaaboom! Just got it, now it's accurate

Thanks
Reply


Messages In This Thread
Trip-o-Meter - Save vehicle KM! - by The_Moddler - 10.11.2010, 16:46
Re: Trip-o-Meter - Save vehicle KM! - by Flyfishes - 10.11.2010, 16:48
Re: Trip-o-Meter - Save vehicle KM! - by The_Moddler - 10.11.2010, 16:51
Re: Trip-o-Meter - Save vehicle KM! - by kakalakamakapaka - 10.11.2010, 16:56
Re: Trip-o-Meter - Save vehicle KM! - by dark_clown - 10.11.2010, 16:57
Re: Trip-o-Meter - Save vehicle KM! - by Hiddos - 10.11.2010, 17:06
Re: Trip-o-Meter - Save vehicle KM! - by The_Moddler - 10.11.2010, 17:09
Re: Trip-o-Meter - Save vehicle KM! - by Hiddos - 10.11.2010, 17:22
Re: Trip-o-Meter - Save vehicle KM! - by The_Moddler - 10.11.2010, 17:39
Re: Trip-o-Meter - Save vehicle KM! - by wups - 10.11.2010, 17:46

Forum Jump:


Users browsing this thread: 2 Guest(s)