Unsolved need help making a samey check for a anticheat
-
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
-
@00 ik how
-
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
-
@حمل-مجانا ty