CCBlueX Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    How Make Enable Module Fly + Disabler Delay Disabler Module Disable

    Scripts
    4
    9
    303
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dasd sadsa
      dasd sadsa last edited by

      How to make a Timer on e.g. fly + disabler script and have the disabler switch off after 5 sec. without Core.lib.

      dasd sadsa 1 Reply Last reply Reply Quote 0
      • dasd sadsa
        dasd sadsa @dasd sadsa last edited by dasd sadsa

        }, 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.

        Plumer Man A FaaatPotato 3 Replies Last reply Reply Quote 0
        • Plumer Man
          Plumer Man @dasd sadsa last edited by

          look at spammer scripts

          1 Reply Last reply Reply Quote 0
          • A
            Arabian @dasd sadsa last edited by

            @dasd-sadsa you are making CraftPlay fly script that auto disables the disabler am i right?

            dasd sadsa 1 Reply Last reply Reply Quote 0
            • dasd sadsa
              dasd sadsa @Arabian last edited by

              @arabian
              Yea Bro

              1 Reply Last reply Reply Quote 0
              • FaaatPotato
                FaaatPotato @dasd sadsa last edited by FaaatPotato

                @dasd-sadsa

                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

                Plumer Man 1 Reply Last reply Reply Quote 0
                • Plumer Man
                  Plumer Man @FaaatPotato last edited by

                  var millisecondsToWait = 500;
                  setTimeout(function() {
                      // Whatever you want to do after the wait
                  }, millisecondsToWait);
                  
                  FaaatPotato 1 Reply Last reply Reply Quote 1
                  • FaaatPotato
                    FaaatPotato @Plumer Man last edited by

                    @plumer-man that works for onEnable too? Cool

                    Plumer Man 1 Reply Last reply Reply Quote 0
                    • Plumer Man
                      Plumer Man @FaaatPotato last edited by

                      @faaatpotato it should

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      About
                      • Terms of Service
                      • Privacy Policy
                      • Status
                      • Contact Us
                      Downloads
                      • Releases
                      • Source code
                      • License
                      Docs
                      • Tutorials
                      • CustomHUD
                      • AutoSettings
                      • ScriptAPI
                      Community
                      • Forum
                      • Guilded
                      • YouTube
                      • Twitter
                      • D.Tube