PDA

View Full Version : Distance travelled


Jstylezzz
18/07/2012, 02:06 PM
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 :)

ViniBorn
18/07/2012, 02:21 PM
The Pythagoras' Theorem will help you.

Jstylezzz
18/07/2012, 02:27 PM
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?