[*] Pilot License improvements
This commit is contained in:
@@ -13,6 +13,7 @@ export default function checkpointHandle(globalData: GlobalData) {
|
||||
var markerID;
|
||||
var event;
|
||||
var checkPointsDone = 0;
|
||||
var activeBlip = null;
|
||||
|
||||
mp.events.add('setCheckPoint', (position, player, checkPointID, nDelay, nMarkerID, nEvent) => {
|
||||
inCheckpoint = false;
|
||||
@@ -29,9 +30,16 @@ export default function checkpointHandle(globalData: GlobalData) {
|
||||
dimension: 0
|
||||
});
|
||||
|
||||
activeBlip = mp.blips.new(1, posCp,
|
||||
{
|
||||
color: 33,
|
||||
alpha: 255,
|
||||
shortRange: false,
|
||||
});
|
||||
|
||||
clearInterval(myVar);
|
||||
//mp.events.call("SERVER:Util_setWaypoint", posCp.X, posCp.Z);
|
||||
mp.game.ui.setNewWaypoint(posCp.x, posCp.y);
|
||||
//mp.game.ui.setNewWaypoint(posCp.x, posCp.y);
|
||||
myVar = setInterval(myTimer, 100);
|
||||
});
|
||||
|
||||
@@ -55,6 +63,7 @@ export default function checkpointHandle(globalData: GlobalData) {
|
||||
|
||||
if (delayCounter >= delay) {
|
||||
activeCheckpoint.destroy();
|
||||
activeBlip.destroy();
|
||||
clearInterval(myVar);
|
||||
mp.events.callRemote("playerInCheckpoint");
|
||||
if (event != "") {
|
||||
|
||||
Reference in New Issue
Block a user