Distance travelled - 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)
+--- Thread: Distance travelled (
/showthread.php?tid=360635)
Distance travelled -
Jstylezzz - 18.07.2012
Hi everyone,
I am making a Taxi meter for my RP script, and i have everything, textdraws, and other needed systems, but the last thing i need, is something that counts the distance driven.
Like, the player does /fare, and from then the script starts counting the distance.. i was thinking about a public/stock function maybe?
I already searched on ******, and found the include of strickenkid, only problem is, that the download link is dead..
Other topics didn't really help me with making it.
I hope someone can help me on this one..
Thanks in advance
Re: Distance travelled -
ViniBorn - 18.07.2012
The Pythagoras' Theorem will help you.
Re: Distance travelled -
Jstylezzz - 18.07.2012
how can i use the Pythagoras Theorem with this xD
something like the difference between old coords-new coords or something?
the thing is, i want to count itwhilst driving, so i can't use old coord-new coord for this..
I have a speedometer system.. isn't it possible to get the distance from the speed?