How count kilometers? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How count kilometers? (
/showthread.php?tid=102438)
How count kilometers? -
SureShot - 15.10.2009
Hey guys,
how can I make that the Cars count the kilometers?
I wonder in general whether this is possible?
Re: How count kilometers? -
yom - 15.10.2009
GTASA units are meters. Just use a timer in which you increase a variable by how many units the vehicle travelled since the last function call.
Re: How count kilometers? -
SureShot - 15.10.2009
I'll that the buyable vehicles save the kilometers. Thats not the problem but you can give me a little push?
Re: How count kilometers? -
MenaceX^ - 15.10.2009
****** has GetPlayerVehicleSpeed function, you should use it and fo easy math for making it to check kilometers and not meters or what ever it does now.
Re: How count kilometers? -
yom - 15.10.2009
Quote:
|
Originally Posted by SureShot
I'll that the buyable vehicles save the kilometers. Thats not the problem but you can give me a little push?
|
Here, basic exemple:
http://pastebin.com/f50b4709b