JS-скрипт Hotkeys, spectators LuckyCharms V4(noad) [OTCv3]

nixer chmo
Пользователь
Статус
Оффлайн
Регистрация
21 Июн 2019
Сообщения
281
Реакции[?]
63
Поинты[?]
1K
Сделал как смог, шрифт может быть не похожим так-как не смог найти.
Но стиль практически в точь точь
SS:
1617460216327.png
Code:
JavaScript:
UI.AddSliderInt("Luckycharms indciators", -1, 0);
UI.AddCheckbox("Hotkeys");
UI.AddCheckbox("Spectator list");
UI.AddColorPicker("Color line");
UI.AddSliderInt("keybinds_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("keybinds_y", 0, Global.GetScreenSize()[1]);
UI.AddSliderInt("spectator_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("spectator_y", 0, Global.GetScreenSize()[1]);
visible = function(){
    UI.SetEnabled("keybinds_x", false);
    UI.SetEnabled("keybinds_y", false);
    UI.SetEnabled("spectator_x", false);
    UI.SetEnabled("spectator_y", false);     
}
var observators = [];
var stored = false,
    x_offs = 0,
    y_offs = 0;
const in_bounds = function(vec, x, y, x2, y2) {
    return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}, 
move = function (x, y, width, height, name) {
    if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
      const mouse_pos = Global.GetCursorPosition();
      if (in_bounds(mouse_pos, x, y, x + width, y + height)) {
         if(!stored){
            x_offs = mouse_pos[0] - x;
            y_offs = mouse_pos[1] - y;
            stored = true;
         }
         UI.SetValue("Script items", name + "_x", mouse_pos[0] - x_offs);
         UI.SetValue("Script items", name + "_y", mouse_pos[1] - y_offs);
      }
   } else if(stored) stored = false;
},
getObservators = function() {
    var ents = Entity.GetPlayers();
    var local = Entity.GetLocalPlayer();
    var localtarget = Entity.GetProp(local, "CBasePlayer", "m_hObserverTarget");
    if (!local) return;
    observators = [];
    for (i = 0; i < ents.length; i++) {
        if (Entity.IsAlive(local)) {
            if (!ents[i] || Entity.IsAlive(ents[i])) continue;
            var observer = Entity.GetProp(ents[i], "CBasePlayer", "m_hObserverTarget");
            if (!observer || observer == "m_hObserverTarget") continue;
            const names = Entity.GetName(ents[i])
            if (observer == local) observators.push(names.length >= 19 ? names.substr(0, 16) + "..." : names);
        } else {
            if (!ents[i] || Entity.IsAlive(ents[i])) continue;
            var observer = Entity.GetProp(ents[i], "CBasePlayer", "m_hObserverTarget");
            if (!observer || observer == "m_hObserverTarget") continue;
            const names = Entity.GetName(ents[i])
            if (observer == localtarget) observators.push(names.length >= 19 ? names.substr(0, 16) + "..." : names);
        }
    }
};
roundstart = function(){
    observators = [];
}
var alpha = 0;
keybinds = function (){
    var color = UI.GetColor("Misc", "Color line");
    var font = Render.AddFont("Segoe UI", 9, 900);
    var x = UI.GetValue("keybinds_x");
    var y = UI.GetValue("keybinds_y");
    var charge = Exploit.GetCharge();
    var key = [];

    info_key = [
    ["Trigger Bot", ["Legit", "GENERAL", "Triggerbot", "Enabled"], [230, 230, 230, alpha * 255]],
    ["Double Tap", ["Rage", "GENERAL", "Exploits", "Doubletap"], charge >= 1  ? [230, 230, 230, alpha * 255] : [216, 55, 55, alpha * 255]],
    ["Hide Shots", ["Rage", "GENERAL", "Exploits", "Hide shots"], [230, 230, 230, alpha * 255]],
    ["Safe Point", ["Rage", "GENERAL", "General", "Force safe point"], [230, 230, 230, alpha * 255]],
    ["Body Aim", ["Rage", "GENERAL", "General", "Force body aim"], [230, 230, 230, alpha * 255]],
    ["Resolver Override", ["Rage", "GENERAL", "General", "Resolver override"], [230, 230, 230, alpha * 255]],
    ["Minimum Damage", ["Misc", "JAVASCRIPT", "Script items", "Damage override key"], [230, 230, 230, alpha * 255]],
    ["Invert Desync", ["Anti-Aim", "Fake angles", "Inverter"], [230, 230, 230, alpha * 255]],
    ["Fake Duck", ["Anti-Aim", "Extra", "Fake duck"], [230, 230, 230, alpha * 255]],
    ["Slow Walk", ["Anti-Aim", "Extra", "Slow walk"], [230, 230, 230, alpha * 255]],
    ["Edge Jump", ["Misc", "GENERAL", "Movement", "Edge jump"], [230, 230, 230, alpha * 255]],
    ["Auto Peek", ["Misc", "GENERAL", "Movement", "Auto peek"], [230, 230, 230, alpha * 255]], 
    ];

    for(var i in info_key){
        bind_path = info_key[i][1];
        if(UI.IsHotkeyActive.apply(null, bind_path)){
            key.push(i);
        }
    }
    alpha = key.length >= 1 || UI.IsMenuOpen() ? 1 : 0;
    if (!UI.GetValue("Hotkeys")) return;

    Render.FilledRect(x, y + 28, 170, 10 + (key.length * 18), [35, 35, 35, alpha * 90]);
    Render.FilledRect(x, y, 170, 28, [35, 35, 35, alpha * 255]);
    Render.GradientRect(x, y + 26, 85, 2, 1, [color[0], color[1], color[2], 0], [color[0], color[1], color[2], alpha * 255]);
    Render.GradientRect(x + 85, y + 26, 85, 2, 1, [color[0], color[1], color[2], alpha * 255], [color[0], color[1], color[2], 0]);
    Render.StringCustom(x + 170 / 2 - (Render.TextSizeCustom("Hotkeys", font)[0] / 2 - 1), y + 7, 0, "Hotkeys", [0, 0, 0, alpha * 255], font);
    Render.StringCustom(x + 170 / 2 - (Render.TextSizeCustom("Hotkeys", font)[0] / 2), y + 6, 0, "Hotkeys", [255, 255, 255, alpha * 255], font);

    for(var j in key){
        bind = key[j];
        name = info_key[bind][0];
        color = info_key[bind][2];

        Render.StringCustom(x + 16, y + 34 + (j * 18), 0, name, [0, 0, 0, alpha * 255], font);
        Render.StringCustom(x + 15, y + 33 + (j * 18), 0, name, color, font);     
    }

    move(x, y, 170, 30, "keybinds");
}
spectator = function (){
    var color = UI.GetColor("Misc", "Color line");
    var font = Render.AddFont("Segoe UI", 9, 900);
    var x = UI.GetValue("spectator_x");
    var y = UI.GetValue("spectator_y");
    var charge = Exploit.GetCharge();
    getObservators();

    alpha1 = observators.length >= 1 || UI.IsMenuOpen() ? 1 : 0;
    if (!UI.GetValue("Spectator list")) return;

    Render.FilledRect(x, y + 28, 170, 10 + (observators.length * 18), [35, 35, 35, alpha1 * 90]);
    Render.FilledRect(x, y, 170, 28, [35, 35, 35, alpha1 * 255]);
    Render.GradientRect(x, y + 26, 85, 2, 1, [color[0], color[1], color[2], 0], [color[0], color[1], color[2], alpha1 * 255]);
    Render.GradientRect(x + 85, y + 26, 85, 2, 1, [color[0], color[1], color[2], alpha1 * 255], [color[0], color[1], color[2], 0]);
    Render.StringCustom(x + 170 / 2 - (Render.TextSizeCustom("Spectators", font)[0] / 2 - 1), y + 7, 0, "Spectators", [0, 0, 0, alpha1 * 255], font);
    Render.StringCustom(x + 170 / 2 - (Render.TextSizeCustom("Spectators", font)[0] / 2), y + 6, 0, "Spectators", [255, 255, 255, alpha1 * 255], font);

    for(i = 0; i < observators.length; i++){
        name = observators[i];

        Render.StringCustom(x + 16, y + 34 + (i * 18), 0, name, [0, 0, 0, alpha1 * 255], font);
        Render.StringCustom(x + 15, y + 33 + (i * 18), 0, name, [230, 230, 230, alpha1 * 255], font);     
    }

    move(x, y, 170, 30, "spectator");
}

Cheat.RegisterCallback("Draw", "visible");
Cheat.RegisterCallback("Draw", "keybinds");
Cheat.RegisterCallback("Draw", "spectator");
Cheat.RegisterCallback("round_start", "roundstart");
 

Вложения

KidauStep
Забаненный
Статус
Оффлайн
Регистрация
31 Окт 2020
Сообщения
324
Реакции[?]
54
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
прикольные кейбинды, де взял?
 
Сверху Снизу