CCBlueX Forum

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

    Unsolved need help making a samey check for a anticheat

    ScriptAPI
    3
    4
    95
    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.
    • 0
      00 last edited by

      ok so im making a anticheat in the scriptapi and i wanna check if the players mid air and has had the same y for 40 ticks

      ENDER1355 ح 2 Replies Last reply Reply Quote 0
      • ENDER1355
        ENDER1355 Banned @00 last edited by

        @00 ik how

        1 Reply Last reply Reply Quote 0
        • ح
          حمل مجانا @00 last edited by

          @00

          var ticksFlight = 0;
              module.on("motion", function(e){
                  var player = mc.thePlayer;
                  if(player.posY == player.prevPosY){
                      ticksFlight++;
                      if(ticksFlight > 120 && ticksFlight % 20 == 0){
                          Chat.print("§9§lVerus §r§8> §r" + player.getDisplayName().getUnformattedText() + " §7failed §rFly §7VL[§9" + ticksFlight + "§7]");
                      }
                  }else{
                      ticksFlight = 0;
                  }
              });
          

          works for mc.thePlayer :axolaugh:

          0 1 Reply Last reply Reply Quote 1
          • 0
            00 @حمل مجانا last edited by

            @حمل-مجانا ty

            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