past killometers
#1

hello guys i want to know does it possible to make how much killometers player pasted in vehicle...
Ex.
Player enter in vehicle and automaticly counting how much he past ...
pawn Код:
CMD:metter(playerid, params[])
{

    return 1;
}
Thanks ..
Reply
#2

Search for ,samp distance traveled, on ******.
Reply
#3

the site cant be found... :/
Reply
#4

Please if someone have to help me ... :/
Reply
#5

cmon guys i need answer fast ... :/
Reply
#6

I think you can store them into an variable.Never tested but I think it would work that way.
Reply
#7

have a function like this:
(onplayespawn) save the players pos with getplayerpos,(save them to a variable)
use getplayerdistancetopoint to check how long he have traveled since last point, and att that value to a variable,
and include GetPlayerPos in the function to so you update the pos it will count, then you re do that to kilometers, like we say one IG yard = 1m you just do variable/1000 and you get the kilometers the player have traveled

Hope it helped :S
Reply
#8

https://sampforum.blast.hk/showthread.php?tid=91815
Reply
#9

Renama i wonder to do that but im dump is scripting ...
i mean i have little knowledge but dont have that much so if u can just post the code of it will be great
Reply
#10

Quote:
Originally Posted by RedJohn
Посмотреть сообщение
The site can't be found tells to me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)