Next-Level Anti-Death Evasion (by =TDAt=Zer0Skills)

Started by (vG)DesTroYeR^, Sep 26, 2025, 05:33 PM

Previous topic - Next topic

(vG)DesTroYeR^



Key_WIN <- BindKey(true, 0x5B, 0, 0); // Better add this at onScriptLoad();
Evaders <- [];
function onKeyDown(player, key) {

if(key == Key_WIN){
if(player.Action == 42 || player.Action == 43 || player.Action == 54){
Evaders.append(player.UID);
Message("[#FFF000]"+player.Name+" [#FF0000]has been banned for [#FFA540]Death evasion");
player.Kick();
}
}


function onPlayerPart(player, reason){
if(player.Action == 42 || player.Action == 43 || player.Action == 54){
Message("[#FFF000]"+player.Name+" [#FF0000]has been banned for [#FFA540]Death evasion");
Evaders.append(player.UID);
}
}


function onPlayerJoin(player){
foreach(val in Evaders) {
if(val == player.UID) player.Kick();
}
else return;
/*
OR YOU CAN TRY THIS
if(Evaders.find(player.UID) != null) player.Kick();
I guess this is better than 1st method
*/
}



The idea is that KeyBind is WAY faster than player.Away (built-in), so player.Away might take upto 3 seconds to detect an AFK state

PLAYER

"Feared by many. Matched by none."
✦ Born from the shadows ✦

☯ Silent • Deadly • Untouchable
⫷ Elite ✦ Ghost ✦ Player ⫸


(vG)DesTroYeR^

Code modified(Updated): Replaced stats AFK/Knocked with player.Action directly