17.08.2012, 01:54
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
(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