How Make Enable Module Fly + Disabler Delay Disabler Module Disable
-
How to make a Timer on e.g. fly + disabler script and have the disabler switch off after 5 sec. without Core.lib.
-
}, function (module) { module.on("enable", function() { Fly.setState(true); Disabler.setState(true); LB.commandManager.executeCommands(".Disabler Mode Fakelag"); LB.commandManager.executeCommands(".Fly Mode Vulcan3"); else if (delay == 2000) for (Disabler.state = false) }); });
How make delay disable Disabler.
-
look at spammer scripts
-
@dasd-sadsa you are making CraftPlay fly script that auto disables the disabler am i right?
-
@arabian
Yea Bro -
var timer = new MSTimer(); var enabled // global onEnable: function() { //fly true whatever you did there //but dont put disabler false in here enabled = true }, onUpdate: function() { if (timer.hasTimePassed(delay) && enabled == true) { enabled = false; timer.reset() //disabler false or whatever you want to do } }
i think you cant put delayed actions in enable/disable? Correct me if im wrong
-
var millisecondsToWait = 500; setTimeout(function() { // Whatever you want to do after the wait }, millisecondsToWait);
-
@plumer-man that works for onEnable too? Cool
-
@faaatpotato it should