SA-MP Forums Archive
past killometers - 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: past killometers (/showthread.php?tid=369307)



past killometers - Rafa - 16.08.2012

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 ..


Re: past killometers - RedJohn - 16.08.2012

Search for ,samp distance traveled, on ******.


Re: past killometers - Rafa - 17.08.2012

the site cant be found... :/


Re: past killometers - Rafa - 17.08.2012

Please if someone have to help me ... :/


Re: past killometers - Rafa - 17.08.2012

cmon guys i need answer fast ... :/


Re: past killometers - TaLhA XIV - 17.08.2012

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


Re: past killometers - Ranama - 17.08.2012

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


Re: past killometers - RedJohn - 17.08.2012

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


Re: past killometers - Rafa - 17.08.2012

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


Re: past killometers - Rafa - 17.08.2012

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