Ищу скрипт Indicators v2

Пользователь
Статус
Оффлайн
Регистрация
6 Дек 2020
Сообщения
382
Реакции[?]
114
Поинты[?]
2K
Сделайте пожалуйста так, чтобы если ни одного кейбинда не активировано, то сама табличка пропадала (как в ориге в2)
Сам код:
JavaScript:
//Watermark\\

UI.AddLabel("                watermark            ");
UI.AddCheckbox("Watermark")
UI.AddCheckbox("outline")
var username = ""
UI.AddColorPicker("[color]");
function otv1water() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Watermark")) {
    var today = new Date();
    var hours1 = today.getHours();
    var minutes1 = today.getMinutes();
    var seconds1 = today.getSeconds();
    var hours = hours1 <= 9 ? "0" + today.getHours() + ":" : today.getHours() + ":";
    var minutes = minutes1 <= 9 ? "0" + today.getMinutes() + ":" : today.getMinutes() + ":";
    var seconds = seconds1 <= 9 ? "0" + today.getSeconds() : today.getSeconds();
    var serverip = World.GetServerString();
    var ping = Math.floor(Global.Latency() * 1000 / 1.5);
    var color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "[color]");
    var font = Render.AddFont("Segoe ui", 8, 100);
    var text = "onetap.su | "+Cheat.GetUsername()+" | "+serverip+" | delay: " +Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString()+ "ms | "+Globals.Tickrate().toString()+ "tick | " + hours + minutes + seconds;
    if (!World.GetServerString()) {text = "onetap.su | "+Cheat.GetUsername()+" | " + hours + minutes + seconds}
    var h = 18;
    var w = Render.TextSizeCustom(text, font)[0] + 10;
    var x = Global.GetScreenSize()[0];
    var y = 10;
    x = x - w - 10;
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "outline")) {

    Render.FilledRect(x+1, y-3, w-2, 1, [0,0,0, 255]);
    Render.FilledRect(x, y-2, w, 1, [0,0,0, 255]);
    Render.FilledRect(x, y-1, w, 1, [0,0,0, 255]);
    Render.FilledRect(x-1, y-1, w+2, 1, [0,0,0, 255]);
    Render.FilledRect(x-1, y, w+2, 1, [0,0,0, 255]);
    Render.FilledRect(x-1, y+1, w+2, 1, [0,0,0, 255]);
    Render.FilledRect(x-1, y+2, w+2, 18, [0,0,0, 255]);
    Render.FilledRect(x, y+20, w, 1, [0,0,0, 255]);
    Render.FilledRect(x+1, y+21, w-2, 1, [0,0,0, 255]);
    Render.FilledRect(x+2, y+22, w-4, 1, [0,0,0, 255]);}

    Render.FilledRect(x, y, w, 20, [60,60,60, 255]);
    Render.FilledRect(x+1, y+20, w-2, 1, [60,60,60, 255]);
    Render.FilledRect(x+2, y+21, w-4, 1, [60,60,60, 255]);

    Render.FilledRect(x+1, y-2, w-2, 1, [color[0], color[1], color[2],255]);
    Render.FilledRect(x, y-1, w, 1, [color[0], color[1], color[2],255]);
    Render.FilledRect(x, y, w, 1, [color[0], color[1], color[2],255]);
    Render.FilledRect(x, y+1, w, 1, [color[0], color[1], color[2],255]);

    //Render.FilledRect(x, y+2, w, 2, [30,30,30, 125]);

    Render.StringCustom(x + 6, y + 5, 0, text, [0, 0, 0, 200], font);
    Render.StringCustom(x + 5, y + 4, 0, text, [255, 255, 255, 255], font);
    }
}
Cheat.RegisterCallback("Draw", "otv1water");

//binds\\

UI.AddLabel("                    binds            ");
UI.AddCheckbox("binds")
UI.AddCheckbox("binds outline")
const keybinds_x = UI.AddSliderInt("keybinds_x", 0, Global.GetScreenSize()[0])
const keybinds_y = UI.AddSliderInt("keybinds_y", 0, Global.GetScreenSize()[1])

function in_bounds(vec, x, y, x2, y2)
{
   return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}

 function xy()
 {
     UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "keybinds_x", false)
     UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "keybinds_y", false)
 }
 xy();

function binds()
 {

     if (UI.GetValue("Misc","JAVASCRIPT","Script items","binds")){
     var watermark_name = Entity.GetName(Entity.GetLocalPlayer( ));
     var today = new Date();
     var hours1 = today.getHours();
     var minutes1 = today.getMinutes();
     var seconds1 = today.getSeconds();
     var localplayer_index = Entity.GetLocalPlayer();
     var velocity = Entity.GetProp(localplayer_index, "CBasePlayer", "m_vecVelocity[0]");
     var speed = Math.sqrt(velocity[0] * velocity[0] + velocity[1] * velocity[1]);
     var finalspeed = Math.min( 9999, speed ) + 0.2
     var hours = hours1 <= 9 ? "0" + today.getHours() + ":" : today.getHours() + ":";
     var minutes = minutes1 <= 9 ? "0" + today.getMinutes() + ":" : today.getMinutes() + ":";
     var seconds = seconds1 <= 9 ? "0" + today.getSeconds() : today.getSeconds()    ;
     const tickrate = Globals.Tickrate();
     const ping = Math.floor(Global.Latency() * 1000 / 1.5);
     const fps = Math.floor( 1 / Global.Frametime() );
     var h = [];
     var bcolor = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "[color]");
     const fontpixel = Render.AddFont("Segoe ui", 8, 100);

     if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
       h.push("[slow walk]")
     }
     if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
       h.push("[fake duck]")
     }
     if (UI.IsHotkeyActive("Misc", "General", "Movement", "Auto peek")) {
       h.push("[auto peek]")
     }
     if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
       h.push("[anti-Aim inverter]")
     }
     if (UI.IsHotkeyActive("Rage", "General", "General", "Force safe point")) {
       h.push("[safe point]")
     }
     if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Minimum damage override")) {
       h.push("[dmg override]")
     }
     if (UI.IsHotkeyActive("Rage", "General", "General", "Force body aim")) {
       h.push("[body aim]")
     }
     if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
       h.push("[double tap]")
     }
     if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
       h.push("[Hide shots]")
     }
     const x = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_x"),
           y = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_y");

     const rainbow = [
         Math.floor(Math.sin(Global.Realtime() * 2) * 127 + 128),
         Math.floor(Math.sin(Global.Realtime() * 2 + 2) * 127 + 128),
         Math.floor(Math.sin(Global.Realtime() * 2 + 2) * 127 + 128),
         255
     ];

     if (UI.GetValue("Misc","JAVASCRIPT","Script items","binds outline")){
     Render.FilledRect(x+19, y + 8, 184, 19, [0,0,0, 255]);
     Render.FilledRect(x+20, y + 27, 182, 1, [0,0,0, 255]);
     Render.FilledRect(x+21, y + 28, 180, 1, [0,0,0, 255]);
     Render.FilledRect(x+22, y + 35, 178, 1, [0,0,0, 255]);
     Render.FilledRect(x+21, y + 36, 180, 1, [0,0,0, 255]);
     Render.FilledRect(x+20, y + 37, 182, 1, [0,0,0, 255]);
     Render.FilledRect(x+21, y+3, 180, 1, [0,0,0, 255]);
     Render.FilledRect(x+20, y+4, 182, 1, [0,0,0, 255]);
     Render.FilledRect(x+19, y+5, 184, 1, [0,0,0, 255]);
     Render.FilledRect(x+19, y+6, 184, 1, [0,0,0, 255]);
     Render.FilledRect(x+19, y+7, 184, 1, [0,0,0, 255]);}

     Render.FilledRect(x+21, y+4, 180, 1, [bcolor[0], bcolor[1], bcolor[2], 255]);
     Render.FilledRect(x+20, y+5, 182, 1, [bcolor[0], bcolor[1], bcolor[2], 255]);
     Render.FilledRect(x+20, y+6, 182, 1, [bcolor[0], bcolor[1], bcolor[2], 255]);
     Render.FilledRect(x+20, y+7, 182, 1, [bcolor[0], bcolor[1], bcolor[2], 255]);

     Render.FilledRect(x+20, y+8, 182, 18, [60,60,60, 255]);
     Render.FilledRect(x+21, y+26, 180, 1, [60,60,60, 255]);
     Render.FilledRect(x+22, y+27, 178, 1, [60,60,60, 255]);

     Render.FilledRect(x+22, y + 36, 178, 1, [60,60,60, 255]);
     Render.FilledRect(x+21, y + 37, 180, 1, [60,60,60, 255]);

     Render.StringCustom(x + 89, y + 10 , 0, "keybinds", [255, 255, 255, 255], fontpixel);
     for (i = 0; i < h.length; i++)
     {
     if (UI.GetValue("Misc","JAVASCRIPT","Script items","binds outline")){
        Render.FilledRect(x+20, y + 38 + 18 * i, 182, 18, [0,0,0, 255]);
        Render.FilledRect(x+20, y + 56 + 18 * i, 182, 1, [0,0,0, 255]);
        Render.FilledRect(x+21, y + 57 + 18 * i, 180, 1, [0,0,0, 255]);
        Render.FilledRect(x+22, y + 58 + 18 * i, 178, 1, [0,0,0, 255]);}

        Render.FilledRect(x+21, y + 38 + 18 * i, 180, 18, [60,60,60, 255]);
        Render.FilledRect(x+21, y + 56 + 18 * i, 180, 1, [60,60,60, 255]);
        Render.FilledRect(x+22, y + 57 + 18 * i, 178, 1, [60,60,60, 255]);

        Render.StringCustom(x + 28, y + 39 + 18 * i, 0, h[i], [255, 255, 255, 255], fontpixel);
        Render.StringCustom(x + 148, y + 39 + 18 * i, 0, "[toggled]", [255, 255, 255, 255], fontpixel);
     }

     if (Global.IsKeyPressed(1)) {
         const mouse_pos = Global.GetCursorPosition();
         if (in_bounds(mouse_pos, x, y, x + 200, y + 30)) {
          if (UI.IsMenuOpen( ) == false)
            return;
             UI.SetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_x", mouse_pos[0] - 100);
             UI.SetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_y", mouse_pos[1] - 20);
         }
     }
}
 }

Global.RegisterCallback("Draw", "binds");
 
Пользователь
Статус
Оффлайн
Регистрация
7 Янв 2018
Сообщения
234
Реакции[?]
35
Поинты[?]
3K
Проверку if сделай внутри функции принта, прожаты ли кейбинды, и внутрь воткни рендер.
 
Пользователь
Статус
Оффлайн
Регистрация
6 Дек 2020
Сообщения
382
Реакции[?]
114
Поинты[?]
2K
Новичок
Статус
Оффлайн
Регистрация
8 Ноя 2020
Сообщения
1
Реакции[?]
0
Поинты[?]
0
UI item searches are not explicit: the search will return the first found item. This means that ** UI.GetValue ("Legit", "Triggerbot", "Enabled") ** will return the same value as ** UI.GetValue ("Legit", "GENERAL", "Triggerbot", "Enabled" ). **
 
Пользователь
Статус
Оффлайн
Регистрация
7 Янв 2018
Сообщения
234
Реакции[?]
35
Поинты[?]
3K
как сделать проверку прожаты ли кейбинды
function indicators {
if (UI.IsHotkeyActive('Rage', 'Exploits', 'Doubletap') || UI.IsHotkeyActive('Rage', 'Exploits', 'Hide shots') || сюда продолжай добавлять проверки на свои бинды) {
//render
}
}
 
Начинающий
Статус
Оффлайн
Регистрация
15 Окт 2020
Сообщения
75
Реакции[?]
29
Поинты[?]
1K
Сделайте пожалуйста так, чтобы если ни одного кейбинда не активировано, то сама табличка пропадала (как в ориге в2)
Сам код:
JavaScript:
//Watermark\\

UI.AddLabel("                watermark            ");
UI.AddCheckbox("Watermark")
UI.AddCheckbox("outline")
var username = ""
UI.AddColorPicker("[color]");
function otv1water() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Watermark")) {
    var today = new Date();
    var hours1 = today.getHours();
    var minutes1 = today.getMinutes();
    var seconds1 = today.getSeconds();
    var hours = hours1 <= 9 ? "0" + today.getHours() + ":" : today.getHours() + ":";
    var minutes = minutes1 <= 9 ? "0" + today.getMinutes() + ":" : today.getMinutes() + ":";
    var seconds = seconds1 <= 9 ? "0" + today.getSeconds() : today.getSeconds();
    var serverip = World.GetServerString();
    var ping = Math.floor(Global.Latency() * 1000 / 1.5);
    var color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "[color]");
    var font = Render.AddFont("Segoe ui", 8, 100);
    var text = "onetap.su | "+Cheat.GetUsername()+" | "+serverip+" | delay: " +Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString()+ "ms | "+Globals.Tickrate().toString()+ "tick | " + hours + minutes + seconds;
    if (!World.GetServerString()) {text = "onetap.su | "+Cheat.GetUsername()+" | " + hours + minutes + seconds}
    var h = 18;
    var w = Render.TextSizeCustom(text, font)[0] + 10;
    var x = Global.GetScreenSize()[0];
    var y = 10;
    x = x - w - 10;
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "outline")) {

    Render.FilledRect(x+1, y-3, w-2, 1, [0,0,0, 255]);
    Render.FilledRect(x, y-2, w, 1, [0,0,0, 255]);
    Render.FilledRect(x, y-1, w, 1, [0,0,0, 255]);
    Render.FilledRect(x-1, y-1, w+2, 1, [0,0,0, 255]);
    Render.FilledRect(x-1, y, w+2, 1, [0,0,0, 255]);
    Render.FilledRect(x-1, y+1, w+2, 1, [0,0,0, 255]);
    Render.FilledRect(x-1, y+2, w+2, 18, [0,0,0, 255]);
    Render.FilledRect(x, y+20, w, 1, [0,0,0, 255]);
    Render.FilledRect(x+1, y+21, w-2, 1, [0,0,0, 255]);
    Render.FilledRect(x+2, y+22, w-4, 1, [0,0,0, 255]);}

    Render.FilledRect(x, y, w, 20, [60,60,60, 255]);
    Render.FilledRect(x+1, y+20, w-2, 1, [60,60,60, 255]);
    Render.FilledRect(x+2, y+21, w-4, 1, [60,60,60, 255]);

    Render.FilledRect(x+1, y-2, w-2, 1, [color[0], color[1], color[2],255]);
    Render.FilledRect(x, y-1, w, 1, [color[0], color[1], color[2],255]);
    Render.FilledRect(x, y, w, 1, [color[0], color[1], color[2],255]);
    Render.FilledRect(x, y+1, w, 1, [color[0], color[1], color[2],255]);

    //Render.FilledRect(x, y+2, w, 2, [30,30,30, 125]);

    Render.StringCustom(x + 6, y + 5, 0, text, [0, 0, 0, 200], font);
    Render.StringCustom(x + 5, y + 4, 0, text, [255, 255, 255, 255], font);
    }
}
Cheat.RegisterCallback("Draw", "otv1water");

//binds\\

UI.AddLabel("                    binds            ");
UI.AddCheckbox("binds")
UI.AddCheckbox("binds outline")
const keybinds_x = UI.AddSliderInt("keybinds_x", 0, Global.GetScreenSize()[0])
const keybinds_y = UI.AddSliderInt("keybinds_y", 0, Global.GetScreenSize()[1])

function in_bounds(vec, x, y, x2, y2)
{
   return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}

function xy()
{
     UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "keybinds_x", false)
     UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "keybinds_y", false)
}
xy();

function binds()
{

     if (UI.GetValue("Misc","JAVASCRIPT","Script items","binds")){
     var watermark_name = Entity.GetName(Entity.GetLocalPlayer( ));
     var today = new Date();
     var hours1 = today.getHours();
     var minutes1 = today.getMinutes();
     var seconds1 = today.getSeconds();
     var localplayer_index = Entity.GetLocalPlayer();
     var velocity = Entity.GetProp(localplayer_index, "CBasePlayer", "m_vecVelocity[0]");
     var speed = Math.sqrt(velocity[0] * velocity[0] + velocity[1] * velocity[1]);
     var finalspeed = Math.min( 9999, speed ) + 0.2
     var hours = hours1 <= 9 ? "0" + today.getHours() + ":" : today.getHours() + ":";
     var minutes = minutes1 <= 9 ? "0" + today.getMinutes() + ":" : today.getMinutes() + ":";
     var seconds = seconds1 <= 9 ? "0" + today.getSeconds() : today.getSeconds()    ;
     const tickrate = Globals.Tickrate();
     const ping = Math.floor(Global.Latency() * 1000 / 1.5);
     const fps = Math.floor( 1 / Global.Frametime() );
     var h = [];
     var bcolor = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "[color]");
     const fontpixel = Render.AddFont("Segoe ui", 8, 100);

     if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
       h.push("[slow walk]")
     }
     if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
       h.push("[fake duck]")
     }
     if (UI.IsHotkeyActive("Misc", "General", "Movement", "Auto peek")) {
       h.push("[auto peek]")
     }
     if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
       h.push("[anti-Aim inverter]")
     }
     if (UI.IsHotkeyActive("Rage", "General", "General", "Force safe point")) {
       h.push("[safe point]")
     }
     if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Minimum damage override")) {
       h.push("[dmg override]")
     }
     if (UI.IsHotkeyActive("Rage", "General", "General", "Force body aim")) {
       h.push("[body aim]")
     }
     if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
       h.push("[double tap]")
     }
     if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
       h.push("[Hide shots]")
     }
     const x = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_x"),
           y = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_y");

     const rainbow = [
         Math.floor(Math.sin(Global.Realtime() * 2) * 127 + 128),
         Math.floor(Math.sin(Global.Realtime() * 2 + 2) * 127 + 128),
         Math.floor(Math.sin(Global.Realtime() * 2 + 2) * 127 + 128),
         255
     ];

     if (UI.GetValue("Misc","JAVASCRIPT","Script items","binds outline")){
     Render.FilledRect(x+19, y + 8, 184, 19, [0,0,0, 255]);
     Render.FilledRect(x+20, y + 27, 182, 1, [0,0,0, 255]);
     Render.FilledRect(x+21, y + 28, 180, 1, [0,0,0, 255]);
     Render.FilledRect(x+22, y + 35, 178, 1, [0,0,0, 255]);
     Render.FilledRect(x+21, y + 36, 180, 1, [0,0,0, 255]);
     Render.FilledRect(x+20, y + 37, 182, 1, [0,0,0, 255]);
     Render.FilledRect(x+21, y+3, 180, 1, [0,0,0, 255]);
     Render.FilledRect(x+20, y+4, 182, 1, [0,0,0, 255]);
     Render.FilledRect(x+19, y+5, 184, 1, [0,0,0, 255]);
     Render.FilledRect(x+19, y+6, 184, 1, [0,0,0, 255]);
     Render.FilledRect(x+19, y+7, 184, 1, [0,0,0, 255]);}

     Render.FilledRect(x+21, y+4, 180, 1, [bcolor[0], bcolor[1], bcolor[2], 255]);
     Render.FilledRect(x+20, y+5, 182, 1, [bcolor[0], bcolor[1], bcolor[2], 255]);
     Render.FilledRect(x+20, y+6, 182, 1, [bcolor[0], bcolor[1], bcolor[2], 255]);
     Render.FilledRect(x+20, y+7, 182, 1, [bcolor[0], bcolor[1], bcolor[2], 255]);

     Render.FilledRect(x+20, y+8, 182, 18, [60,60,60, 255]);
     Render.FilledRect(x+21, y+26, 180, 1, [60,60,60, 255]);
     Render.FilledRect(x+22, y+27, 178, 1, [60,60,60, 255]);

     Render.FilledRect(x+22, y + 36, 178, 1, [60,60,60, 255]);
     Render.FilledRect(x+21, y + 37, 180, 1, [60,60,60, 255]);

     Render.StringCustom(x + 89, y + 10 , 0, "keybinds", [255, 255, 255, 255], fontpixel);
     for (i = 0; i < h.length; i++)
     {
     if (UI.GetValue("Misc","JAVASCRIPT","Script items","binds outline")){
        Render.FilledRect(x+20, y + 38 + 18 * i, 182, 18, [0,0,0, 255]);
        Render.FilledRect(x+20, y + 56 + 18 * i, 182, 1, [0,0,0, 255]);
        Render.FilledRect(x+21, y + 57 + 18 * i, 180, 1, [0,0,0, 255]);
        Render.FilledRect(x+22, y + 58 + 18 * i, 178, 1, [0,0,0, 255]);}

        Render.FilledRect(x+21, y + 38 + 18 * i, 180, 18, [60,60,60, 255]);
        Render.FilledRect(x+21, y + 56 + 18 * i, 180, 1, [60,60,60, 255]);
        Render.FilledRect(x+22, y + 57 + 18 * i, 178, 1, [60,60,60, 255]);

        Render.StringCustom(x + 28, y + 39 + 18 * i, 0, h[i], [255, 255, 255, 255], fontpixel);
        Render.StringCustom(x + 148, y + 39 + 18 * i, 0, "[toggled]", [255, 255, 255, 255], fontpixel);
     }

     if (Global.IsKeyPressed(1)) {
         const mouse_pos = Global.GetCursorPosition();
         if (in_bounds(mouse_pos, x, y, x + 200, y + 30)) {
          if (UI.IsMenuOpen( ) == false)
            return;
             UI.SetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_x", mouse_pos[0] - 100);
             UI.SetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_y", mouse_pos[1] - 20);
         }
     }
}
}

Global.RegisterCallback("Draw", "binds");
Держи

JavaScript:
//Watermark\\

UI.AddLabel("                watermark            ");
UI.AddCheckbox("Watermark")
UI.AddCheckbox("outline")
var username = ""
UI.AddColorPicker("[color]");
function otv1water() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Watermark")) {
    var today = new Date();
    var hours1 = today.getHours();
    var minutes1 = today.getMinutes();
    var seconds1 = today.getSeconds();
    var hours = hours1 <= 9 ? "0" + today.getHours() + ":" : today.getHours() + ":";
    var minutes = minutes1 <= 9 ? "0" + today.getMinutes() + ":" : today.getMinutes() + ":";
    var seconds = seconds1 <= 9 ? "0" + today.getSeconds() : today.getSeconds();
    var serverip = World.GetServerString();
    var ping = Math.floor(Global.Latency() * 1000 / 1.5);
    var color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "[color]");
    var font = Render.AddFont("Segoe ui", 8, 100);
    var text = "onetap.su | "+Cheat.GetUsername()+" | "+serverip+" | delay: " +Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString()+ "ms | "+Globals.Tickrate().toString()+ "tick | " + hours + minutes + seconds;
    if (!World.GetServerString()) {text = "onetap.su | "+Cheat.GetUsername()+" | " + hours + minutes + seconds}
    var h = 18;
    var w = Render.TextSizeCustom(text, font)[0] + 10;
    var x = Global.GetScreenSize()[0];
    var y = 10;
    x = x - w - 10;
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "outline")) {

    Render.FilledRect(x+1, y-3, w-2, 1, [0,0,0, 255]);
    Render.FilledRect(x, y-2, w, 1, [0,0,0, 255]);
    Render.FilledRect(x, y-1, w, 1, [0,0,0, 255]);
    Render.FilledRect(x-1, y-1, w+2, 1, [0,0,0, 255]);
    Render.FilledRect(x-1, y, w+2, 1, [0,0,0, 255]);
    Render.FilledRect(x-1, y+1, w+2, 1, [0,0,0, 255]);
    Render.FilledRect(x-1, y+2, w+2, 18, [0,0,0, 255]);
    Render.FilledRect(x, y+20, w, 1, [0,0,0, 255]);
    Render.FilledRect(x+1, y+21, w-2, 1, [0,0,0, 255]);
    Render.FilledRect(x+2, y+22, w-4, 1, [0,0,0, 255]);}

    Render.FilledRect(x, y, w, 20, [60,60,60, 255]);
    Render.FilledRect(x+1, y+20, w-2, 1, [60,60,60, 255]);
    Render.FilledRect(x+2, y+21, w-4, 1, [60,60,60, 255]);

    Render.FilledRect(x+1, y-2, w-2, 1, [color[0], color[1], color[2],255]);
    Render.FilledRect(x, y-1, w, 1, [color[0], color[1], color[2],255]);
    Render.FilledRect(x, y, w, 1, [color[0], color[1], color[2],255]);
    Render.FilledRect(x, y+1, w, 1, [color[0], color[1], color[2],255]);

    //Render.FilledRect(x, y+2, w, 2, [30,30,30, 125]);

    Render.StringCustom(x + 6, y + 5, 0, text, [0, 0, 0, 200], font);
    Render.StringCustom(x + 5, y + 4, 0, text, [255, 255, 255, 255], font);
    }
}
Cheat.RegisterCallback("Draw", "otv1water");

//binds\\

UI.AddLabel("                    binds            ");
UI.AddCheckbox("binds")
UI.AddCheckbox("binds outline")
const keybinds_x = UI.AddSliderInt("keybinds_x", 0, Global.GetScreenSize()[0])
const keybinds_y = UI.AddSliderInt("keybinds_y", 0, Global.GetScreenSize()[1])

function in_bounds(vec, x, y, x2, y2)
{
   return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}

 function xy()
 {
     UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "keybinds_x", false)
     UI.SetEnabled("Misc", "JAVASCRIPT", "Script items", "keybinds_y", false)
 }
 xy();

function binds()
 {

     if (UI.GetValue("Misc","JAVASCRIPT","Script items","binds")){
     var watermark_name = Entity.GetName(Entity.GetLocalPlayer( ));
     var today = new Date();
     var hours1 = today.getHours();
     var minutes1 = today.getMinutes();
     var seconds1 = today.getSeconds();
     var localplayer_index = Entity.GetLocalPlayer();
     var velocity = Entity.GetProp(localplayer_index, "CBasePlayer", "m_vecVelocity[0]");
     var speed = Math.sqrt(velocity[0] * velocity[0] + velocity[1] * velocity[1]);
     var finalspeed = Math.min( 9999, speed ) + 0.2
     var hours = hours1 <= 9 ? "0" + today.getHours() + ":" : today.getHours() + ":";
     var minutes = minutes1 <= 9 ? "0" + today.getMinutes() + ":" : today.getMinutes() + ":";
     var seconds = seconds1 <= 9 ? "0" + today.getSeconds() : today.getSeconds()    ;
     const tickrate = Globals.Tickrate();
     const ping = Math.floor(Global.Latency() * 1000 / 1.5);
     const fps = Math.floor( 1 / Global.Frametime() );
     var h = [];
     var bcolor = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "[color]");
     const fontpixel = Render.AddFont("Segoe ui", 8, 100);

     if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
       h.push("[slow walk]")
     }
     if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
       h.push("[fake duck]")
     }
     if (UI.IsHotkeyActive("Misc", "General", "Movement", "Auto peek")) {
       h.push("[auto peek]")
     }
     if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
       h.push("[anti-Aim inverter]")
     }
     if (UI.IsHotkeyActive("Rage", "General", "General", "Force safe point")) {
       h.push("[safe point]")
     }
     if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Minimum damage override")) {
       h.push("[dmg override]")
     }
     if (UI.IsHotkeyActive("Rage", "General", "General", "Force body aim")) {
       h.push("[body aim]")
     }
     if (UI.IsHotkeyActive("Rage", "Exploits", "Double tap")) {
       h.push("[double tap]")
     }
     if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
       h.push("[Hide shots]")
     }
     const x = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_x"),
           y = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_y");

     const rainbow = [
         Math.floor(Math.sin(Global.Realtime() * 2) * 127 + 128),
         Math.floor(Math.sin(Global.Realtime() * 2 + 2) * 127 + 128),
         Math.floor(Math.sin(Global.Realtime() * 2 + 2) * 127 + 128),
         255
     ];

     if(h.length > 0)
         if (UI.GetValue("Misc","JAVASCRIPT","Script items","binds outline")){
         Render.FilledRect(x+19, y + 8, 184, 19, [0,0,0, 255]);
         Render.FilledRect(x+20, y + 27, 182, 1, [0,0,0, 255]);
         Render.FilledRect(x+21, y + 28, 180, 1, [0,0,0, 255]);
         Render.FilledRect(x+22, y + 35, 178, 1, [0,0,0, 255]);
         Render.FilledRect(x+21, y + 36, 180, 1, [0,0,0, 255]);
         Render.FilledRect(x+20, y + 37, 182, 1, [0,0,0, 255]);
         Render.FilledRect(x+21, y+3, 180, 1, [0,0,0, 255]);
         Render.FilledRect(x+20, y+4, 182, 1, [0,0,0, 255]);
         Render.FilledRect(x+19, y+5, 184, 1, [0,0,0, 255]);
         Render.FilledRect(x+19, y+6, 184, 1, [0,0,0, 255]);
         Render.FilledRect(x+19, y+7, 184, 1, [0,0,0, 255]);}

         Render.FilledRect(x+21, y+4, 180, 1, [bcolor[0], bcolor[1], bcolor[2], 255]);
         Render.FilledRect(x+20, y+5, 182, 1, [bcolor[0], bcolor[1], bcolor[2], 255]);
         Render.FilledRect(x+20, y+6, 182, 1, [bcolor[0], bcolor[1], bcolor[2], 255]);
         Render.FilledRect(x+20, y+7, 182, 1, [bcolor[0], bcolor[1], bcolor[2], 255]);

         Render.FilledRect(x+20, y+8, 182, 18, [60,60,60, 255]);
         Render.FilledRect(x+21, y+26, 180, 1, [60,60,60, 255]);
         Render.FilledRect(x+22, y+27, 178, 1, [60,60,60, 255]);

         Render.FilledRect(x+22, y + 36, 178, 1, [60,60,60, 255]);
         Render.FilledRect(x+21, y + 37, 180, 1, [60,60,60, 255]);

         Render.StringCustom(x + 89, y + 10 , 0, "keybinds", [255, 255, 255, 255], fontpixel);
         for (i = 0; i < h.length; i++)
         {
         if (UI.GetValue("Misc","JAVASCRIPT","Script items","binds outline")){
            Render.FilledRect(x+20, y + 38 + 18 * i, 182, 18, [0,0,0, 255]);
            Render.FilledRect(x+20, y + 56 + 18 * i, 182, 1, [0,0,0, 255]);
            Render.FilledRect(x+21, y + 57 + 18 * i, 180, 1, [0,0,0, 255]);
            Render.FilledRect(x+22, y + 58 + 18 * i, 178, 1, [0,0,0, 255]);}

            Render.FilledRect(x+21, y + 38 + 18 * i, 180, 18, [60,60,60, 255]);
            Render.FilledRect(x+21, y + 56 + 18 * i, 180, 1, [60,60,60, 255]);
            Render.FilledRect(x+22, y + 57 + 18 * i, 178, 1, [60,60,60, 255]);

            Render.StringCustom(x + 28, y + 39 + 18 * i, 0, h[i], [255, 255, 255, 255], fontpixel);
            Render.StringCustom(x + 148, y + 39 + 18 * i, 0, "[toggled]", [255, 255, 255, 255], fontpixel);
         }
     }

     if (Global.IsKeyPressed(1)) {
         const mouse_pos = Global.GetCursorPosition();
         if (in_bounds(mouse_pos, x, y, x + 200, y + 30)) {
          if (UI.IsMenuOpen( ) == false)
            return;
             UI.SetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_x", mouse_pos[0] - 100);
             UI.SetValue("Misc", "JAVASCRIPT", "Script items", "keybinds_y", mouse_pos[1] - 20);
         }
     }
}
 }

Global.RegisterCallback("Draw", "binds");
 
Сверху Снизу