JS-скрипт Animated indicators [otv3]

Пользователь
Статус
Оффлайн
Регистрация
24 Апр 2018
Сообщения
445
Реакции[?]
86
Поинты[?]
3K
Легенда форума
Статус
Оффлайн
Регистрация
10 Дек 2018
Сообщения
4,385
Реакции[?]
2,286
Поинты[?]
191K
JavaScript:
UI.AddLabel("             Anim indicators");
UI.AddCheckbox("Enable   ");
UI.AddDropdown("Indicators color", ["Off", "red", "blue", "green", "white"]);
UI.AddSliderInt("Transparency first anim", 0, 255);
UI.AddSliderInt("Transparency second anim", 0, 255);
UI.AddSliderInt("Transparency third anim", 0, 255);
UI.AddLabel("         ");
AnimindFunctions = function() {
    const Animindenabler = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Enable   ");
    UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Indicators color", Animindenabler);
    UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Transparency first anim", Animindenabler);
    UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Transparency second anim", Animindenabler);
    UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Transparency third anim", Animindenabler);
}

function AnimindFunction() {
    AnimindFunctions();
};
const screen_size = Global.GetScreenSize();
var stored = false;
var x_offs = 0;
var y_offs = 0;
UI.AddSliderInt("binds x", 0, screen_size[0]);
UI.AddSliderInt("binds y", 0, screen_size[1]);
UI.SetEnabled("Script items", "binds x", false);
UI.SetEnabled("Script items", "binds y", false);
const in_bounds = function(vec, x, y, x2, y2) {
    return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}
const x = UI.GetValue("Script items", "binds x"),
    y = UI.GetValue("Script items", "binds y");
const font = Render.AddFont("Calibri", 10, 100);

function HSVtoRGB(h, s, v) {
    var r, g, b, i, f, p, q, t;
    if (arguments.length === 1) {
        s = h.s, v = h.v, h = h.h;
    }
    i = Math.floor(h * 6);
    f = h * 6 - i;
    p = v * (1 - s);
    q = v * (1 - f * s);
    t = v * (1 - (1 - f) * s);
    switch (i % 6) {
        case 0:
            r = v, g = t, b = p;
            break;
        case 1:
            r = q, g = v, b = p;
            break;
        case 2:
            r = p, g = v, b = t;
            break;
        case 3:
            r = p, g = q, b = v;
            break;
        case 4:
            r = t, g = p, b = v;
            break;
        case 5:
            r = v, g = p, b = q;
            break;
    }
    return {
        r: Math.round(r * UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Transparency first anim")),
        g: Math.round(g * UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Transparency second anim")),
        b: Math.round(b * UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Transparency third anim"))
    };
}

function animation() {
    tickcount = Globals.Tickcount();
    color = HSVtoRGB(tickcount % 300 / 300, 1, 1, 1, 1);
}

function randomIntFrom(a, b) {
    return Math.floor(Math.random() * (b - a + 1) + a)
}
const animindicator = function() {
    mode = UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Indicators color");
    if (mode == 3) {
        const user = Cheat.GetUsername();
        const ping = Math.round(Local.Latency() * 1000 - 16);
        const now = new Date();
        const hours = now.getHours(),
            mins = now.getMinutes(),
            secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        const font = Render.AddFont("Calibri", 10, 100);
        const text = "onetap | " + user + " | ";
        if (World.GetServerString() != "") {
            text += "" + ping + " ms | " + Globals.Tickrate() + " tick | ";
        }
        text += time;
        const w = Render.TextSizeCustom(text, font)[0] + 10;
        const x = screen_size[0];
        x = x - w - 10;
        Render.FilledRect(x, 12, w, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 5, 13, 0, text, [255, 255, 255, 255], font);
        Render.GradientRect(x, 10, w / 2, 2, 2, [0, color.b, 0, 255], [0, color.g, 0, 255]);
        Render.GradientRect(x + 40, 10, w / 2, 2, 2, [0, color.g, 0, 255], [0, color.b, 0, 255]);
        if (World.GetServerString()) {
            Render.GradientRect(x + 10, 10, w / 2, 2, 2, [0, color.b, 0, 255], [0, color.g, 0, 255]);
            Render.GradientRect(x + 113, 10, w / 2, 2, 2, [0, color.g, 0, 255], [0, color.r, 0, 255]);
        }
        var keybinds = [];
        if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
            keybinds.push("Double tap")
        };
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            keybinds.push("Hide shots")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
            keybinds.push("Slow walk")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
            keybinds.push("Anti-Aim inverter")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            keybinds.push("Force safe point")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            keybinds.push("Force body aim")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            keybinds.push("Fake duck")
        };
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            keybinds.push("Auto peek")
        };
        const x = UI.GetValue("Script items", "binds x"),
            y = UI.GetValue("Script items", "binds y");
        const font = Render.AddFont("Calibri", 10, 100);
        Render.FilledRect(x, y, 150, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 75, y + 1, 1, "keybinds", [255, 255, 255, 255], font);
        for (i = 0; i < keybinds.length; i++) {
            Render.StringCustom(x + 1, y + 18 + 15 * i, 0, keybinds[i], [255, 255, 255, 255], font);
            Render.StringCustom(x + 128, y + 18 + 15 * i, 0, "[on]", [255, 255, 255, 255], font);
        }
        Render.GradientRect(x, y - 2, 75, 2, 2, [0, color.g, 0, 255], [0, color.r, 0, 255]);
        Render.GradientRect(x + 75, y - 2, 75, 2, 2, [0, color.r, 0, 255], [0, color.b, 0, 255]);
        if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
            const mouse_pos = Global.GetCursorPosition();
            if (in_bounds(mouse_pos, x, y, x + 150, y + 40)) {
                if (!stored) {
                    x_offs = mouse_pos[0] - x;
                    y_offs = mouse_pos[1] - y;
                    stored = true;
                }
                UI.SetValue("Script items", "binds x", mouse_pos[0] - x_offs);
                UI.SetValue("Script items", "binds y", mouse_pos[1] - y_offs);
            }
        } else if (stored) stored = false;
    }
    if (mode == 2) {
        const user = Cheat.GetUsername();
        const ping = Math.round(Local.Latency() * 1000 - 16);
        const now = new Date();
        const hours = now.getHours(),
            mins = now.getMinutes(),
            secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        const font = Render.AddFont("Calibri", 10, 100);
        const text = "onetap | " + user + " | ";
        if (World.GetServerString() != "") {
            text += "" + ping + " ms | " + Globals.Tickrate() + " tick | ";
        }
        text += time;
        const w = Render.TextSizeCustom(text, font)[0] + 10;
        const x = screen_size[0];
        x = x - w - 10;
        Render.FilledRect(x, 12, w, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 5, 13, 0, text, [255, 255, 255, 255], font);
        Render.GradientRect(x, 10, w / 2, 2, 2, [50, 50, color.b, 255], [0, 0, 0, 255]);
        Render.GradientRect(x + 40, 10, w / 2, 2, 2, [50, 50, color.g, 255], [50, 50, color.b, 255]);
        if (World.GetServerString()) {
            Render.GradientRect(x + 10, 10, w / 2, 2, 2, [50, 50, color.b, 255], [50, 50, color.g, 255]);
            Render.GradientRect(x + 113, 10, w / 2, 2, 2, [50, 50, color.g, 255], [50, 50, color.r, 255]);
        }
        var keybinds = [];
        if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
            keybinds.push("Double tap")
        };
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            keybinds.push("Hide shots")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
            keybinds.push("Slow walk")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
            keybinds.push("Anti-Aim inverter")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            keybinds.push("Force safe point")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            keybinds.push("Force body aim")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            keybinds.push("Fake duck")
        };
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            keybinds.push("Auto peek")
        };
        const x = UI.GetValue("Script items", "binds x"),
            y = UI.GetValue("Script items", "binds y");
        const font = Render.AddFont("Calibri", 10, 100);
        Render.GradientRect(x, y - 2, 75, 2, 2, [50, 50, color.g, 255], [50, 50, color.r, 255]);
        Render.GradientRect(x + 75, y - 2, 75, 2, 2, [50, 50, color.r, 255], [50, 50, color.b, 255]);
        Render.FilledRect(x, y, 150, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 75, y + 1, 1, "keybinds", [255, 255, 255, 255], font);
        for (i = 0; i < keybinds.length; i++) {
            Render.StringCustom(x + 1, y + 18 + 15 * i, 0, keybinds[i], [255, 255, 255, 255], font);
            Render.StringCustom(x + 128, y + 18 + 15 * i, 0, "[on]", [255, 255, 255, 255], font);
        }
        if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
            const mouse_pos = Global.GetCursorPosition();
            if (in_bounds(mouse_pos, x, y, x + 150, y + 40)) {
                if (!stored) {
                    x_offs = mouse_pos[0] - x;
                    y_offs = mouse_pos[1] - y;
                    stored = true;
                }
                UI.SetValue("Script items", "binds x", mouse_pos[0] - x_offs);
                UI.SetValue("Script items", "binds y", mouse_pos[1] - y_offs);
            }
        } else if (stored) stored = false;
    }
    if (mode == 1) {
        const user = Cheat.GetUsername();
        const ping = Math.round(Local.Latency() * 1000 - 16);
        const now = new Date();
        const hours = now.getHours(),
            mins = now.getMinutes(),
            secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        const font = Render.AddFont("Calibri", 10, 100);
        const text = "onetap | " + user + " | ";
        if (World.GetServerString() != "") {
            text += "" + ping + " ms | " + Globals.Tickrate() + " tick | ";
        }
        text += time;
        const w = Render.TextSizeCustom(text, font)[0] + 10;
        const x = screen_size[0];
        x = x - w - 10;
        Render.FilledRect(x, 12, w, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 5, 13, 0, text, [255, 255, 255, 255], font);
        Render.GradientRect(x, 10, w / 2, 2, 2, [color.r, 0, 0, 255], [0, 0, 0, 255]);
        Render.GradientRect(x + 40, 10, w / 2, 2, 2, [color.r, 0, 0, 255], [color.b, 0, 0, 255]);
        if (World.GetServerString()) {
            Render.GradientRect(x + 10, 10, w / 2, 2, 2, [color.r, 0, 0, 255], [color.r, 0, 0, 250]);
            Render.GradientRect(x + 113, 10, w / 2, 2, 2, [color.r, 0, 0, 255], [0, 0, 0, 255]);
        }
        var keybinds = [];
        if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
            keybinds.push("Double tap")
        };
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            keybinds.push("Hide shots")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
            keybinds.push("Slow walk")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
            keybinds.push("Anti-Aim inverter")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            keybinds.push("Force safe point")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            keybinds.push("Force body aim")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            keybinds.push("Fake duck")
        };
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            keybinds.push("Auto peek")
        };
        const x = UI.GetValue("Script items", "binds x"),
            y = UI.GetValue("Script items", "binds y");
        const font = Render.AddFont("Calibri", 10, 100);
        Render.GradientRect(x, y - 2, 75, 2, 2, [color.g, 0, 0, 255], [color.r, 0, 0, 255]);
        Render.GradientRect(x + 75, y - 2, 75, 2, 2, [color.r, 0, 0, 255], [color.b, 0, 0, 255]);
        Render.FilledRect(x, y, 150, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 75, y + 1, 1, "keybinds", [255, 255, 255, 255], font);
        for (i = 0; i < keybinds.length; i++) {
            Render.StringCustom(x + 1, y + 18 + 15 * i, 0, keybinds[i], [255, 255, 255, 255], font);
            Render.StringCustom(x + 128, y + 18 + 15 * i, 0, "[on]", [255, 255, 255, 255], font);
        }
        if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
            const mouse_pos = Global.GetCursorPosition();
            if (in_bounds(mouse_pos, x, y, x + 150, y + 40)) {
                if (!stored) {
                    x_offs = mouse_pos[0] - x;
                    y_offs = mouse_pos[1] - y;
                    stored = true;
                }
                UI.SetValue("Script items", "binds x", mouse_pos[0] - x_offs);
                UI.SetValue("Script items", "binds y", mouse_pos[1] - y_offs);
            }
        } else if (stored) stored = false;
    }
    if (mode == 4) {
        const user = Cheat.GetUsername();
        const ping = Math.round(Local.Latency() * 1000 - 16);
        const now = new Date();
        const hours = now.getHours(),
            mins = now.getMinutes(),
            secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        const font = Render.AddFont("Calibri", 10, 100);
        const text = "onetap | " + user + " | ";
        if (World.GetServerString() != "") {
            text += "" + ping + " ms | " + Globals.Tickrate() + " tick | ";
        }
        text += time;
        const w = Render.TextSizeCustom(text, font)[0] + 10;
        const x = screen_size[0];
        x = x - w - 10;
        Render.FilledRect(x, 12, w, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 5, 13, 0, text, [255, 255, 255, 255], font);
        Render.GradientRect(x, 10, w / 2, 2, 2, [color.r, color.r, color.r, 255], [color.r, color.r, color.r, 255]);
        Render.GradientRect(x + 40, 10, w / 2, 2, 2, [color.r, color.r, color.r, 255], [color.b, color.b, color.b, 255]);
        if (World.GetServerString()) {
            Render.GradientRect(x + 10, 10, w / 2, 2, 2, [color.r, color.r, color.r, 255], [color.r, color.r, color.r, 250]);
            Render.GradientRect(x + 113, 10, w / 2, 2, 2, [color.r, color.r, color.r, 255], [0, 0, 0, 255]);
        }
        var keybinds = [];
        if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
            keybinds.push("Double tap")
        };
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            keybinds.push("Hide shots")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
            keybinds.push("Slow walk")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
            keybinds.push("Anti-Aim inverter")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            keybinds.push("Force safe point")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            keybinds.push("Force body aim")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            keybinds.push("Fake duck")
        };
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            keybinds.push("Auto peek")
        };
        const x = UI.GetValue("Script items", "binds x"),
            y = UI.GetValue("Script items", "binds y");
        const font = Render.AddFont("Calibri", 10, 100);
        Render.FilledRect(x, y, 150, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 75, y + 1, 1, "keybinds", [255, 255, 255, 255], font);
        for (i = 0; i < keybinds.length; i++) {
            Render.StringCustom(x + 1, y + 18 + 15 * i, 0, keybinds[i], [255, 255, 255, 255], font);
            Render.StringCustom(x + 128, y + 18 + 15 * i, 0, "[on]", [255, 255, 255, 255], font);
        }
        Render.GradientRect(x, y - 2, 75, 2, 2, [color.g, color.g, color.g, 255], [color.r, color.r, color.r, 255]);
        Render.GradientRect(x + 75, y - 2, 75, 2, 2, [color.r, color.r, color.r, 255], [color.b, color.b, color.b, 255]);
        if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
            const mouse_pos = Global.GetCursorPosition();
            if (in_bounds(mouse_pos, x, y, x + 150, y + 40)) {
                if (!stored) {
                    x_offs = mouse_pos[0] - x;
                    y_offs = mouse_pos[1] - y;
                    stored = true;
                }
                UI.SetValue("Script items", "binds x", mouse_pos[0] - x_offs);
                UI.SetValue("Script items", "binds y", mouse_pos[1] - y_offs);
            }
        } else if (stored) stored = false;
    }
    if (mode == 0) {}
}
Global.RegisterCallback("Draw", "AnimindFunction");
Cheat.RegisterCallback("Draw", "animindicator");
Cheat.RegisterCallback("Draw", "animation");

Деобсуфицированный код, да.
 
nop
Пользователь
Статус
Оффлайн
Регистрация
1 Ноя 2019
Сообщения
261
Реакции[?]
53
Поинты[?]
0
JavaScript:
UI.AddLabel("             Anim indicators");
UI.AddCheckbox("Enable   ");
UI.AddDropdown("Indicators color", ["Off", "red", "blue", "green", "white"]);
UI.AddSliderInt("Transparency first anim", 0, 255);
UI.AddSliderInt("Transparency second anim", 0, 255);
UI.AddSliderInt("Transparency third anim", 0, 255);
UI.AddLabel("         ");
AnimindFunctions = function() {
    const Animindenabler = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Enable   ");
    UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Indicators color", Animindenabler);
    UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Transparency first anim", Animindenabler);
    UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Transparency second anim", Animindenabler);
    UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Transparency third anim", Animindenabler);
}

function AnimindFunction() {
    AnimindFunctions();
};
const screen_size = Global.GetScreenSize();
var stored = false;
var x_offs = 0;
var y_offs = 0;
UI.AddSliderInt("binds x", 0, screen_size[0]);
UI.AddSliderInt("binds y", 0, screen_size[1]);
UI.SetEnabled("Script items", "binds x", false);
UI.SetEnabled("Script items", "binds y", false);
const in_bounds = function(vec, x, y, x2, y2) {
    return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}
const x = UI.GetValue("Script items", "binds x"),
    y = UI.GetValue("Script items", "binds y");
const font = Render.AddFont("Calibri", 10, 100);

function HSVtoRGB(h, s, v) {
    var r, g, b, i, f, p, q, t;
    if (arguments.length === 1) {
        s = h.s, v = h.v, h = h.h;
    }
    i = Math.floor(h * 6);
    f = h * 6 - i;
    p = v * (1 - s);
    q = v * (1 - f * s);
    t = v * (1 - (1 - f) * s);
    switch (i % 6) {
        case 0:
            r = v, g = t, b = p;
            break;
        case 1:
            r = q, g = v, b = p;
            break;
        case 2:
            r = p, g = v, b = t;
            break;
        case 3:
            r = p, g = q, b = v;
            break;
        case 4:
            r = t, g = p, b = v;
            break;
        case 5:
            r = v, g = p, b = q;
            break;
    }
    return {
        r: Math.round(r * UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Transparency first anim")),
        g: Math.round(g * UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Transparency second anim")),
        b: Math.round(b * UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Transparency third anim"))
    };
}

function animation() {
    tickcount = Globals.Tickcount();
    color = HSVtoRGB(tickcount % 300 / 300, 1, 1, 1, 1);
}

function randomIntFrom(a, b) {
    return Math.floor(Math.random() * (b - a + 1) + a)
}
const animindicator = function() {
    mode = UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Indicators color");
    if (mode == 3) {
        const user = Cheat.GetUsername();
        const ping = Math.round(Local.Latency() * 1000 - 16);
        const now = new Date();
        const hours = now.getHours(),
            mins = now.getMinutes(),
            secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        const font = Render.AddFont("Calibri", 10, 100);
        const text = "onetap | " + user + " | ";
        if (World.GetServerString() != "") {
            text += "" + ping + " ms | " + Globals.Tickrate() + " tick | ";
        }
        text += time;
        const w = Render.TextSizeCustom(text, font)[0] + 10;
        const x = screen_size[0];
        x = x - w - 10;
        Render.FilledRect(x, 12, w, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 5, 13, 0, text, [255, 255, 255, 255], font);
        Render.GradientRect(x, 10, w / 2, 2, 2, [0, color.b, 0, 255], [0, color.g, 0, 255]);
        Render.GradientRect(x + 40, 10, w / 2, 2, 2, [0, color.g, 0, 255], [0, color.b, 0, 255]);
        if (World.GetServerString()) {
            Render.GradientRect(x + 10, 10, w / 2, 2, 2, [0, color.b, 0, 255], [0, color.g, 0, 255]);
            Render.GradientRect(x + 113, 10, w / 2, 2, 2, [0, color.g, 0, 255], [0, color.r, 0, 255]);
        }
        var keybinds = [];
        if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
            keybinds.push("Double tap")
        };
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            keybinds.push("Hide shots")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
            keybinds.push("Slow walk")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
            keybinds.push("Anti-Aim inverter")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            keybinds.push("Force safe point")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            keybinds.push("Force body aim")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            keybinds.push("Fake duck")
        };
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            keybinds.push("Auto peek")
        };
        const x = UI.GetValue("Script items", "binds x"),
            y = UI.GetValue("Script items", "binds y");
        const font = Render.AddFont("Calibri", 10, 100);
        Render.FilledRect(x, y, 150, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 75, y + 1, 1, "keybinds", [255, 255, 255, 255], font);
        for (i = 0; i < keybinds.length; i++) {
            Render.StringCustom(x + 1, y + 18 + 15 * i, 0, keybinds[i], [255, 255, 255, 255], font);
            Render.StringCustom(x + 128, y + 18 + 15 * i, 0, "[on]", [255, 255, 255, 255], font);
        }
        Render.GradientRect(x, y - 2, 75, 2, 2, [0, color.g, 0, 255], [0, color.r, 0, 255]);
        Render.GradientRect(x + 75, y - 2, 75, 2, 2, [0, color.r, 0, 255], [0, color.b, 0, 255]);
        if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
            const mouse_pos = Global.GetCursorPosition();
            if (in_bounds(mouse_pos, x, y, x + 150, y + 40)) {
                if (!stored) {
                    x_offs = mouse_pos[0] - x;
                    y_offs = mouse_pos[1] - y;
                    stored = true;
                }
                UI.SetValue("Script items", "binds x", mouse_pos[0] - x_offs);
                UI.SetValue("Script items", "binds y", mouse_pos[1] - y_offs);
            }
        } else if (stored) stored = false;
    }
    if (mode == 2) {
        const user = Cheat.GetUsername();
        const ping = Math.round(Local.Latency() * 1000 - 16);
        const now = new Date();
        const hours = now.getHours(),
            mins = now.getMinutes(),
            secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        const font = Render.AddFont("Calibri", 10, 100);
        const text = "onetap | " + user + " | ";
        if (World.GetServerString() != "") {
            text += "" + ping + " ms | " + Globals.Tickrate() + " tick | ";
        }
        text += time;
        const w = Render.TextSizeCustom(text, font)[0] + 10;
        const x = screen_size[0];
        x = x - w - 10;
        Render.FilledRect(x, 12, w, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 5, 13, 0, text, [255, 255, 255, 255], font);
        Render.GradientRect(x, 10, w / 2, 2, 2, [50, 50, color.b, 255], [0, 0, 0, 255]);
        Render.GradientRect(x + 40, 10, w / 2, 2, 2, [50, 50, color.g, 255], [50, 50, color.b, 255]);
        if (World.GetServerString()) {
            Render.GradientRect(x + 10, 10, w / 2, 2, 2, [50, 50, color.b, 255], [50, 50, color.g, 255]);
            Render.GradientRect(x + 113, 10, w / 2, 2, 2, [50, 50, color.g, 255], [50, 50, color.r, 255]);
        }
        var keybinds = [];
        if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
            keybinds.push("Double tap")
        };
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            keybinds.push("Hide shots")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
            keybinds.push("Slow walk")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
            keybinds.push("Anti-Aim inverter")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            keybinds.push("Force safe point")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            keybinds.push("Force body aim")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            keybinds.push("Fake duck")
        };
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            keybinds.push("Auto peek")
        };
        const x = UI.GetValue("Script items", "binds x"),
            y = UI.GetValue("Script items", "binds y");
        const font = Render.AddFont("Calibri", 10, 100);
        Render.GradientRect(x, y - 2, 75, 2, 2, [50, 50, color.g, 255], [50, 50, color.r, 255]);
        Render.GradientRect(x + 75, y - 2, 75, 2, 2, [50, 50, color.r, 255], [50, 50, color.b, 255]);
        Render.FilledRect(x, y, 150, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 75, y + 1, 1, "keybinds", [255, 255, 255, 255], font);
        for (i = 0; i < keybinds.length; i++) {
            Render.StringCustom(x + 1, y + 18 + 15 * i, 0, keybinds[i], [255, 255, 255, 255], font);
            Render.StringCustom(x + 128, y + 18 + 15 * i, 0, "[on]", [255, 255, 255, 255], font);
        }
        if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
            const mouse_pos = Global.GetCursorPosition();
            if (in_bounds(mouse_pos, x, y, x + 150, y + 40)) {
                if (!stored) {
                    x_offs = mouse_pos[0] - x;
                    y_offs = mouse_pos[1] - y;
                    stored = true;
                }
                UI.SetValue("Script items", "binds x", mouse_pos[0] - x_offs);
                UI.SetValue("Script items", "binds y", mouse_pos[1] - y_offs);
            }
        } else if (stored) stored = false;
    }
    if (mode == 1) {
        const user = Cheat.GetUsername();
        const ping = Math.round(Local.Latency() * 1000 - 16);
        const now = new Date();
        const hours = now.getHours(),
            mins = now.getMinutes(),
            secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        const font = Render.AddFont("Calibri", 10, 100);
        const text = "onetap | " + user + " | ";
        if (World.GetServerString() != "") {
            text += "" + ping + " ms | " + Globals.Tickrate() + " tick | ";
        }
        text += time;
        const w = Render.TextSizeCustom(text, font)[0] + 10;
        const x = screen_size[0];
        x = x - w - 10;
        Render.FilledRect(x, 12, w, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 5, 13, 0, text, [255, 255, 255, 255], font);
        Render.GradientRect(x, 10, w / 2, 2, 2, [color.r, 0, 0, 255], [0, 0, 0, 255]);
        Render.GradientRect(x + 40, 10, w / 2, 2, 2, [color.r, 0, 0, 255], [color.b, 0, 0, 255]);
        if (World.GetServerString()) {
            Render.GradientRect(x + 10, 10, w / 2, 2, 2, [color.r, 0, 0, 255], [color.r, 0, 0, 250]);
            Render.GradientRect(x + 113, 10, w / 2, 2, 2, [color.r, 0, 0, 255], [0, 0, 0, 255]);
        }
        var keybinds = [];
        if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
            keybinds.push("Double tap")
        };
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            keybinds.push("Hide shots")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
            keybinds.push("Slow walk")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
            keybinds.push("Anti-Aim inverter")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            keybinds.push("Force safe point")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            keybinds.push("Force body aim")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            keybinds.push("Fake duck")
        };
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            keybinds.push("Auto peek")
        };
        const x = UI.GetValue("Script items", "binds x"),
            y = UI.GetValue("Script items", "binds y");
        const font = Render.AddFont("Calibri", 10, 100);
        Render.GradientRect(x, y - 2, 75, 2, 2, [color.g, 0, 0, 255], [color.r, 0, 0, 255]);
        Render.GradientRect(x + 75, y - 2, 75, 2, 2, [color.r, 0, 0, 255], [color.b, 0, 0, 255]);
        Render.FilledRect(x, y, 150, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 75, y + 1, 1, "keybinds", [255, 255, 255, 255], font);
        for (i = 0; i < keybinds.length; i++) {
            Render.StringCustom(x + 1, y + 18 + 15 * i, 0, keybinds[i], [255, 255, 255, 255], font);
            Render.StringCustom(x + 128, y + 18 + 15 * i, 0, "[on]", [255, 255, 255, 255], font);
        }
        if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
            const mouse_pos = Global.GetCursorPosition();
            if (in_bounds(mouse_pos, x, y, x + 150, y + 40)) {
                if (!stored) {
                    x_offs = mouse_pos[0] - x;
                    y_offs = mouse_pos[1] - y;
                    stored = true;
                }
                UI.SetValue("Script items", "binds x", mouse_pos[0] - x_offs);
                UI.SetValue("Script items", "binds y", mouse_pos[1] - y_offs);
            }
        } else if (stored) stored = false;
    }
    if (mode == 4) {
        const user = Cheat.GetUsername();
        const ping = Math.round(Local.Latency() * 1000 - 16);
        const now = new Date();
        const hours = now.getHours(),
            mins = now.getMinutes(),
            secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        const font = Render.AddFont("Calibri", 10, 100);
        const text = "onetap | " + user + " | ";
        if (World.GetServerString() != "") {
            text += "" + ping + " ms | " + Globals.Tickrate() + " tick | ";
        }
        text += time;
        const w = Render.TextSizeCustom(text, font)[0] + 10;
        const x = screen_size[0];
        x = x - w - 10;
        Render.FilledRect(x, 12, w, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 5, 13, 0, text, [255, 255, 255, 255], font);
        Render.GradientRect(x, 10, w / 2, 2, 2, [color.r, color.r, color.r, 255], [color.r, color.r, color.r, 255]);
        Render.GradientRect(x + 40, 10, w / 2, 2, 2, [color.r, color.r, color.r, 255], [color.b, color.b, color.b, 255]);
        if (World.GetServerString()) {
            Render.GradientRect(x + 10, 10, w / 2, 2, 2, [color.r, color.r, color.r, 255], [color.r, color.r, color.r, 250]);
            Render.GradientRect(x + 113, 10, w / 2, 2, 2, [color.r, color.r, color.r, 255], [0, 0, 0, 255]);
        }
        var keybinds = [];
        if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
            keybinds.push("Double tap")
        };
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            keybinds.push("Hide shots")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
            keybinds.push("Slow walk")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
            keybinds.push("Anti-Aim inverter")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            keybinds.push("Force safe point")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            keybinds.push("Force body aim")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            keybinds.push("Fake duck")
        };
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            keybinds.push("Auto peek")
        };
        const x = UI.GetValue("Script items", "binds x"),
            y = UI.GetValue("Script items", "binds y");
        const font = Render.AddFont("Calibri", 10, 100);
        Render.FilledRect(x, y, 150, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 75, y + 1, 1, "keybinds", [255, 255, 255, 255], font);
        for (i = 0; i < keybinds.length; i++) {
            Render.StringCustom(x + 1, y + 18 + 15 * i, 0, keybinds[i], [255, 255, 255, 255], font);
            Render.StringCustom(x + 128, y + 18 + 15 * i, 0, "[on]", [255, 255, 255, 255], font);
        }
        Render.GradientRect(x, y - 2, 75, 2, 2, [color.g, color.g, color.g, 255], [color.r, color.r, color.r, 255]);
        Render.GradientRect(x + 75, y - 2, 75, 2, 2, [color.r, color.r, color.r, 255], [color.b, color.b, color.b, 255]);
        if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
            const mouse_pos = Global.GetCursorPosition();
            if (in_bounds(mouse_pos, x, y, x + 150, y + 40)) {
                if (!stored) {
                    x_offs = mouse_pos[0] - x;
                    y_offs = mouse_pos[1] - y;
                    stored = true;
                }
                UI.SetValue("Script items", "binds x", mouse_pos[0] - x_offs);
                UI.SetValue("Script items", "binds y", mouse_pos[1] - y_offs);
            }
        } else if (stored) stored = false;
    }
    if (mode == 0) {}
}
Global.RegisterCallback("Draw", "AnimindFunction");
Cheat.RegisterCallback("Draw", "animindicator");
Cheat.RegisterCallback("Draw", "animation");

Деобсуфицированный код, да.
js min называется и нафига ты слил мой позорный код
 
☆。・:*:・゚★,。・:*:・゚・。☆
Забаненный
Статус
Оффлайн
Регистрация
23 Апр 2021
Сообщения
102
Реакции[?]
22
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Дай кфг
 
Забаненный
Статус
Оффлайн
Регистрация
21 Ноя 2020
Сообщения
97
Реакции[?]
32
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
☆。・:*:・゚★,。・:*:・゚・。☆
Забаненный
Статус
Оффлайн
Регистрация
23 Апр 2021
Сообщения
102
Реакции[?]
22
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Забаненный
Статус
Оффлайн
Регистрация
6 Июн 2020
Сообщения
27
Реакции[?]
25
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
pidjan
Пользователь
Статус
Оффлайн
Регистрация
10 Ноя 2020
Сообщения
526
Реакции[?]
148
Поинты[?]
1K
JavaScript:
UI.AddLabel("             Anim indicators");
UI.AddCheckbox("Enable   ");
UI.AddDropdown("Indicators color", ["Off", "red", "blue", "green", "white"]);
UI.AddSliderInt("Transparency first anim", 0, 255);
UI.AddSliderInt("Transparency second anim", 0, 255);
UI.AddSliderInt("Transparency third anim", 0, 255);
UI.AddLabel("         ");
AnimindFunctions = function() {
    const Animindenabler = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Enable   ");
    UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Indicators color", Animindenabler);
    UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Transparency first anim", Animindenabler);
    UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Transparency second anim", Animindenabler);
    UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "Transparency third anim", Animindenabler);
}

function AnimindFunction() {
    AnimindFunctions();
};
const screen_size = Global.GetScreenSize();
var stored = false;
var x_offs = 0;
var y_offs = 0;
UI.AddSliderInt("binds x", 0, screen_size[0]);
UI.AddSliderInt("binds y", 0, screen_size[1]);
UI.SetEnabled("Script items", "binds x", false);
UI.SetEnabled("Script items", "binds y", false);
const in_bounds = function(vec, x, y, x2, y2) {
    return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}
const x = UI.GetValue("Script items", "binds x"),
    y = UI.GetValue("Script items", "binds y");
const font = Render.AddFont("Calibri", 10, 100);

function HSVtoRGB(h, s, v) {
    var r, g, b, i, f, p, q, t;
    if (arguments.length === 1) {
        s = h.s, v = h.v, h = h.h;
    }
    i = Math.floor(h * 6);
    f = h * 6 - i;
    p = v * (1 - s);
    q = v * (1 - f * s);
    t = v * (1 - (1 - f) * s);
    switch (i % 6) {
        case 0:
            r = v, g = t, b = p;
            break;
        case 1:
            r = q, g = v, b = p;
            break;
        case 2:
            r = p, g = v, b = t;
            break;
        case 3:
            r = p, g = q, b = v;
            break;
        case 4:
            r = t, g = p, b = v;
            break;
        case 5:
            r = v, g = p, b = q;
            break;
    }
    return {
        r: Math.round(r * UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Transparency first anim")),
        g: Math.round(g * UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Transparency second anim")),
        b: Math.round(b * UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Transparency third anim"))
    };
}

function animation() {
    tickcount = Globals.Tickcount();
    color = HSVtoRGB(tickcount % 300 / 300, 1, 1, 1, 1);
}

function randomIntFrom(a, b) {
    return Math.floor(Math.random() * (b - a + 1) + a)
}
const animindicator = function() {
    mode = UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Indicators color");
    if (mode == 3) {
        const user = Cheat.GetUsername();
        const ping = Math.round(Local.Latency() * 1000 - 16);
        const now = new Date();
        const hours = now.getHours(),
            mins = now.getMinutes(),
            secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        const font = Render.AddFont("Calibri", 10, 100);
        const text = "onetap | " + user + " | ";
        if (World.GetServerString() != "") {
            text += "" + ping + " ms | " + Globals.Tickrate() + " tick | ";
        }
        text += time;
        const w = Render.TextSizeCustom(text, font)[0] + 10;
        const x = screen_size[0];
        x = x - w - 10;
        Render.FilledRect(x, 12, w, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 5, 13, 0, text, [255, 255, 255, 255], font);
        Render.GradientRect(x, 10, w / 2, 2, 2, [0, color.b, 0, 255], [0, color.g, 0, 255]);
        Render.GradientRect(x + 40, 10, w / 2, 2, 2, [0, color.g, 0, 255], [0, color.b, 0, 255]);
        if (World.GetServerString()) {
            Render.GradientRect(x + 10, 10, w / 2, 2, 2, [0, color.b, 0, 255], [0, color.g, 0, 255]);
            Render.GradientRect(x + 113, 10, w / 2, 2, 2, [0, color.g, 0, 255], [0, color.r, 0, 255]);
        }
        var keybinds = [];
        if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
            keybinds.push("Double tap")
        };
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            keybinds.push("Hide shots")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
            keybinds.push("Slow walk")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
            keybinds.push("Anti-Aim inverter")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            keybinds.push("Force safe point")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            keybinds.push("Force body aim")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            keybinds.push("Fake duck")
        };
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            keybinds.push("Auto peek")
        };
        const x = UI.GetValue("Script items", "binds x"),
            y = UI.GetValue("Script items", "binds y");
        const font = Render.AddFont("Calibri", 10, 100);
        Render.FilledRect(x, y, 150, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 75, y + 1, 1, "keybinds", [255, 255, 255, 255], font);
        for (i = 0; i < keybinds.length; i++) {
            Render.StringCustom(x + 1, y + 18 + 15 * i, 0, keybinds[i], [255, 255, 255, 255], font);
            Render.StringCustom(x + 128, y + 18 + 15 * i, 0, "[on]", [255, 255, 255, 255], font);
        }
        Render.GradientRect(x, y - 2, 75, 2, 2, [0, color.g, 0, 255], [0, color.r, 0, 255]);
        Render.GradientRect(x + 75, y - 2, 75, 2, 2, [0, color.r, 0, 255], [0, color.b, 0, 255]);
        if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
            const mouse_pos = Global.GetCursorPosition();
            if (in_bounds(mouse_pos, x, y, x + 150, y + 40)) {
                if (!stored) {
                    x_offs = mouse_pos[0] - x;
                    y_offs = mouse_pos[1] - y;
                    stored = true;
                }
                UI.SetValue("Script items", "binds x", mouse_pos[0] - x_offs);
                UI.SetValue("Script items", "binds y", mouse_pos[1] - y_offs);
            }
        } else if (stored) stored = false;
    }
    if (mode == 2) {
        const user = Cheat.GetUsername();
        const ping = Math.round(Local.Latency() * 1000 - 16);
        const now = new Date();
        const hours = now.getHours(),
            mins = now.getMinutes(),
            secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        const font = Render.AddFont("Calibri", 10, 100);
        const text = "onetap | " + user + " | ";
        if (World.GetServerString() != "") {
            text += "" + ping + " ms | " + Globals.Tickrate() + " tick | ";
        }
        text += time;
        const w = Render.TextSizeCustom(text, font)[0] + 10;
        const x = screen_size[0];
        x = x - w - 10;
        Render.FilledRect(x, 12, w, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 5, 13, 0, text, [255, 255, 255, 255], font);
        Render.GradientRect(x, 10, w / 2, 2, 2, [50, 50, color.b, 255], [0, 0, 0, 255]);
        Render.GradientRect(x + 40, 10, w / 2, 2, 2, [50, 50, color.g, 255], [50, 50, color.b, 255]);
        if (World.GetServerString()) {
            Render.GradientRect(x + 10, 10, w / 2, 2, 2, [50, 50, color.b, 255], [50, 50, color.g, 255]);
            Render.GradientRect(x + 113, 10, w / 2, 2, 2, [50, 50, color.g, 255], [50, 50, color.r, 255]);
        }
        var keybinds = [];
        if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
            keybinds.push("Double tap")
        };
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            keybinds.push("Hide shots")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
            keybinds.push("Slow walk")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
            keybinds.push("Anti-Aim inverter")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            keybinds.push("Force safe point")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            keybinds.push("Force body aim")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            keybinds.push("Fake duck")
        };
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            keybinds.push("Auto peek")
        };
        const x = UI.GetValue("Script items", "binds x"),
            y = UI.GetValue("Script items", "binds y");
        const font = Render.AddFont("Calibri", 10, 100);
        Render.GradientRect(x, y - 2, 75, 2, 2, [50, 50, color.g, 255], [50, 50, color.r, 255]);
        Render.GradientRect(x + 75, y - 2, 75, 2, 2, [50, 50, color.r, 255], [50, 50, color.b, 255]);
        Render.FilledRect(x, y, 150, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 75, y + 1, 1, "keybinds", [255, 255, 255, 255], font);
        for (i = 0; i < keybinds.length; i++) {
            Render.StringCustom(x + 1, y + 18 + 15 * i, 0, keybinds[i], [255, 255, 255, 255], font);
            Render.StringCustom(x + 128, y + 18 + 15 * i, 0, "[on]", [255, 255, 255, 255], font);
        }
        if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
            const mouse_pos = Global.GetCursorPosition();
            if (in_bounds(mouse_pos, x, y, x + 150, y + 40)) {
                if (!stored) {
                    x_offs = mouse_pos[0] - x;
                    y_offs = mouse_pos[1] - y;
                    stored = true;
                }
                UI.SetValue("Script items", "binds x", mouse_pos[0] - x_offs);
                UI.SetValue("Script items", "binds y", mouse_pos[1] - y_offs);
            }
        } else if (stored) stored = false;
    }
    if (mode == 1) {
        const user = Cheat.GetUsername();
        const ping = Math.round(Local.Latency() * 1000 - 16);
        const now = new Date();
        const hours = now.getHours(),
            mins = now.getMinutes(),
            secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        const font = Render.AddFont("Calibri", 10, 100);
        const text = "onetap | " + user + " | ";
        if (World.GetServerString() != "") {
            text += "" + ping + " ms | " + Globals.Tickrate() + " tick | ";
        }
        text += time;
        const w = Render.TextSizeCustom(text, font)[0] + 10;
        const x = screen_size[0];
        x = x - w - 10;
        Render.FilledRect(x, 12, w, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 5, 13, 0, text, [255, 255, 255, 255], font);
        Render.GradientRect(x, 10, w / 2, 2, 2, [color.r, 0, 0, 255], [0, 0, 0, 255]);
        Render.GradientRect(x + 40, 10, w / 2, 2, 2, [color.r, 0, 0, 255], [color.b, 0, 0, 255]);
        if (World.GetServerString()) {
            Render.GradientRect(x + 10, 10, w / 2, 2, 2, [color.r, 0, 0, 255], [color.r, 0, 0, 250]);
            Render.GradientRect(x + 113, 10, w / 2, 2, 2, [color.r, 0, 0, 255], [0, 0, 0, 255]);
        }
        var keybinds = [];
        if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
            keybinds.push("Double tap")
        };
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            keybinds.push("Hide shots")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
            keybinds.push("Slow walk")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
            keybinds.push("Anti-Aim inverter")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            keybinds.push("Force safe point")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            keybinds.push("Force body aim")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            keybinds.push("Fake duck")
        };
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            keybinds.push("Auto peek")
        };
        const x = UI.GetValue("Script items", "binds x"),
            y = UI.GetValue("Script items", "binds y");
        const font = Render.AddFont("Calibri", 10, 100);
        Render.GradientRect(x, y - 2, 75, 2, 2, [color.g, 0, 0, 255], [color.r, 0, 0, 255]);
        Render.GradientRect(x + 75, y - 2, 75, 2, 2, [color.r, 0, 0, 255], [color.b, 0, 0, 255]);
        Render.FilledRect(x, y, 150, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 75, y + 1, 1, "keybinds", [255, 255, 255, 255], font);
        for (i = 0; i < keybinds.length; i++) {
            Render.StringCustom(x + 1, y + 18 + 15 * i, 0, keybinds[i], [255, 255, 255, 255], font);
            Render.StringCustom(x + 128, y + 18 + 15 * i, 0, "[on]", [255, 255, 255, 255], font);
        }
        if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
            const mouse_pos = Global.GetCursorPosition();
            if (in_bounds(mouse_pos, x, y, x + 150, y + 40)) {
                if (!stored) {
                    x_offs = mouse_pos[0] - x;
                    y_offs = mouse_pos[1] - y;
                    stored = true;
                }
                UI.SetValue("Script items", "binds x", mouse_pos[0] - x_offs);
                UI.SetValue("Script items", "binds y", mouse_pos[1] - y_offs);
            }
        } else if (stored) stored = false;
    }
    if (mode == 4) {
        const user = Cheat.GetUsername();
        const ping = Math.round(Local.Latency() * 1000 - 16);
        const now = new Date();
        const hours = now.getHours(),
            mins = now.getMinutes(),
            secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        const font = Render.AddFont("Calibri", 10, 100);
        const text = "onetap | " + user + " | ";
        if (World.GetServerString() != "") {
            text += "" + ping + " ms | " + Globals.Tickrate() + " tick | ";
        }
        text += time;
        const w = Render.TextSizeCustom(text, font)[0] + 10;
        const x = screen_size[0];
        x = x - w - 10;
        Render.FilledRect(x, 12, w, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 5, 13, 0, text, [255, 255, 255, 255], font);
        Render.GradientRect(x, 10, w / 2, 2, 2, [color.r, color.r, color.r, 255], [color.r, color.r, color.r, 255]);
        Render.GradientRect(x + 40, 10, w / 2, 2, 2, [color.r, color.r, color.r, 255], [color.b, color.b, color.b, 255]);
        if (World.GetServerString()) {
            Render.GradientRect(x + 10, 10, w / 2, 2, 2, [color.r, color.r, color.r, 255], [color.r, color.r, color.r, 250]);
            Render.GradientRect(x + 113, 10, w / 2, 2, 2, [color.r, color.r, color.r, 255], [0, 0, 0, 255]);
        }
        var keybinds = [];
        if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
            keybinds.push("Double tap")
        };
        if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
            keybinds.push("Hide shots")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
            keybinds.push("Slow walk")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
            keybinds.push("Anti-Aim inverter")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
            keybinds.push("Force safe point")
        };
        if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
            keybinds.push("Force body aim")
        };
        if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
            keybinds.push("Fake duck")
        };
        if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
            keybinds.push("Auto peek")
        };
        const x = UI.GetValue("Script items", "binds x"),
            y = UI.GetValue("Script items", "binds y");
        const font = Render.AddFont("Calibri", 10, 100);
        Render.FilledRect(x, y, 150, 18, [0, 0, 0, 100]);
        Render.StringCustom(x + 75, y + 1, 1, "keybinds", [255, 255, 255, 255], font);
        for (i = 0; i < keybinds.length; i++) {
            Render.StringCustom(x + 1, y + 18 + 15 * i, 0, keybinds[i], [255, 255, 255, 255], font);
            Render.StringCustom(x + 128, y + 18 + 15 * i, 0, "[on]", [255, 255, 255, 255], font);
        }
        Render.GradientRect(x, y - 2, 75, 2, 2, [color.g, color.g, color.g, 255], [color.r, color.r, color.r, 255]);
        Render.GradientRect(x + 75, y - 2, 75, 2, 2, [color.r, color.r, color.r, 255], [color.b, color.b, color.b, 255]);
        if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
            const mouse_pos = Global.GetCursorPosition();
            if (in_bounds(mouse_pos, x, y, x + 150, y + 40)) {
                if (!stored) {
                    x_offs = mouse_pos[0] - x;
                    y_offs = mouse_pos[1] - y;
                    stored = true;
                }
                UI.SetValue("Script items", "binds x", mouse_pos[0] - x_offs);
                UI.SetValue("Script items", "binds y", mouse_pos[1] - y_offs);
            }
        } else if (stored) stored = false;
    }
    if (mode == 0) {}
}
Global.RegisterCallback("Draw", "AnimindFunction");
Cheat.RegisterCallback("Draw", "animindicator");
Cheat.RegisterCallback("Draw", "animation");

Деобсуфицированный код, да.
Лучше бы я не смотрел в этот мусор, где даже switch нету и даже создают отдельную функцию что-бы вызвать функцию. Чел вообще не старался и сделать эту анимацию не составит никакого труда, и то скорость как вроде не настроишь
 
Забаненный
Статус
Оффлайн
Регистрация
21 Ноя 2020
Сообщения
97
Реакции[?]
32
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
1621359280280.png
 
Забаненный
Статус
Оффлайн
Регистрация
6 Июн 2020
Сообщения
27
Реакции[?]
25
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Сверху Снизу