JS-скрипт Buybot on key+indicator [OTC3]

Пользователь
Статус
Оффлайн
Регистрация
30 Ноя 2019
Сообщения
179
Реакции[?]
34
Поинты[?]
0
Пожалуйста, авторизуйтесь для просмотра ссылки.

JavaScript:
UI.AddHotkey("buybot key");
UI.AddCheckbox("Draw indicators");
UI.AddSliderInt("Indicator offset X", 1, 1920);
UI.AddSliderInt("Indicator offset Y", 1, 1080);

function buybot()
{
    if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "buybot key"))
    {
        UI.SetValue ("Misc", "Buybot", "Enable", true);
        
    }
    else
    {
    
        {
            UI.SetValue ("Misc", "Buybot", "Enable", false);
        }
    }
}

function drawFunction(){
    var shouldDraw = UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Draw indicators");
    if (shouldDraw) {
        
        var screen_size = Global.GetScreenSize();
        var x = (UI.GetValue("Misc", "JAVASCRIPT", "Script Items","Indicator offset X"))
        var y = (UI.GetValue("Misc", "JAVASCRIPT", "Script Items","Indicator offset Y"))

        var keybindArray = [
            
        ];
        
        if (UI.IsHotkeyActive("JAVASCRIPT", "Script items", "buybot")) {
            keybindArray.push("buybot")
        }
        
        var text_size = 4

        for (var i=0;i < keybindArray.length;i++) {
            //Global.Print("STD:" + keybindArray[i][0])
            var textHeight = text_size*5.5
            var y_add = (textHeight * i)
            var clr = [124,195,13,255]
            if (keybindArray[i] == "buybot") {
                clr = [255,0,0,255]
            }     
            Render.String( x, y - y_add, 0, keybindArray[i], clr,text_size);
        }
    }
}
Cheat.RegisterCallback("CreateMove", "buybot")
Global.RegisterCallback("Draw","drawFunction")
 
Похожие темы
Сверху Снизу