random commit

This commit is contained in:
2019-10-28 16:16:56 +01:00
parent a759b1b273
commit 216a71ae89
3 changed files with 37 additions and 17 deletions

View File

@@ -56,6 +56,12 @@ export default function checkpointHandle(globalData: GlobalData) {
}
});
mp.events.add('getCP', () => {
var pos = posCp;
mp.events.callRemote("sendCP", posCp.x, posCp.y, posCp.z);
});
function myTimer() {
let dist = mp.game.gameplay.getDistanceBetweenCoords(Player.position.x, Player.position.y, 0, posCp.x, posCp.y, 0, false);
//mp.gui.chat.push("delay: " + delay + " | delayCounter: " + delayCounter);