А зачем тебе needDisable?Код гавно но терпимо
JS:ui.add_checkbox("Clantag", "clantag"); var clantagg = [ ">", "> g", "> ga", "> gan", "> gand", "> gando", "> gandon", "> xyu", "> goodbye", ">", ]; var needDisable = true; register_callback("render", function(){ if (!vars.get_bool("js.clantag")) { if(needDisable){ cheat.set_clantag(""); needDisable = false; } return; } needDisable = true; var last_clantag_time = 0; var time = parseInt((global_vars.curtime() * 4)); if (time == last_clantag_time) return; last_clantag_time = time; cheat.set_clantag(clantagg[(time) % clantagg.length]); })
JS:
ui.add_checkbox("Clantag", "clantag");
var clantagg = [
">",
"> g",
"> ga",
"> gan",
"> gand",
"> gando",
"> gandon",
"> xyu",
"> goodbye",
">",
];
register_callback("render", function(){
if (!vars.get_bool("js.clantag")) cheat.set_clantag("");
var last_clantag_time = 0;
var time = parseInt((global_vars.curtime() * 4));
if (time == last_clantag_time) return;
last_clantag_time = time;
cheat.set_clantag(clantagg[(time) % clantagg.length]);
})