[how] car trip
#1

I dont know how to make car trip meter (u know what i mean?)...Please can u tell me or make for me simple script about car trip meter, because i dont know how to make that....i dont have idea....



i know that my english is too bad....sorry for that...
Reply
#2

Sorry, but I don't really get it. What's a "car trip meter" :P
Is it something that record the length that a car is driving?
Reply
#3

You know equation v=s/t? (velocity=lenght divided by time)
Change it to another format:
s=v/t (lenght = speed/time)

With this you can count the lenght of driven route.
Reply
#4

i try something like that, but i cant...everytime is milion errors :S


kwarde yes it is
Reply
#5

DistanceBetweenPoints?
not mine, credits in there
pawn Код:
stock Float:GetDistanceBetweenPoints(Float:x1,Float:y1,Float:z1,Float:x2,Float:y2,Float:z2) //By Gabriel "Larcius" Cordes
{
    return floatadd(floatadd(floatsqroot(floatpower(floatsub(x1,x2),2)),floatsqroot(floatpower(floatsub(y1,y2),2))),floatsqroot(floatpower(floatsub(z1,z2),2)));
}
Reply
#6

can u give me direct link ?
Reply
#7

Just use that stock.

Then u get the coords of the player and the coords of the place ur going and fill them in the stock.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)