16.08.2009, 21:14
Ethan's Distance Traveled Include v1.0
About:This include records the distance a player has walked, ran, driven, flew, in feet and more! Great for roleplay servers, and stunt servers! It even has a built in textdraw that can be turned on or off in the script.
Picture:
Bugs:
None so far!
Install:
pawn Code:
1. Place the following under the appropriate callbacks:
- DT_OnGameModeInit();
- DT_OnPlayerRequestClass(playerid);
- DT_OnPlayerConnect(playerid);
- DT_OnPlayerDisconnect(playerid);
- DT_OnPlayerSpawn(playerid);
- DT_OnPlayerDeath(playerid);
- DT_OnPlayerInteriorChange(playerid);
2. And Place this at the top of your script:
- #indlude <DT>
3. If you want to save players distance traveled use the folowing variable:
- Distance[playerid]
4. Have Fun!