JS-скрипт OTC3 Legendware keybindlist & watermark

Эксперт
Статус
Оффлайн
Регистрация
10 Фев 2021
Сообщения
1,740
Реакции[?]
559
Поинты[?]
2K
Взял основу кейбиндов у psychoon, т.к. не шарю за кряк вт
Я НЕ знаю джава скрипт, не бейте палками, моя первая работа с рендером
JavaScript:
UI.AddDropdown("Theme", ["Black", "White"]);
UI.AddCheckbox("Keybinds");
UI.AddCheckbox("Watermark");
UI.AddSliderInt("keybinds_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("keybinds_y", 0, Global.GetScreenSize()[1]);
UI.AddSliderInt("water_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("water_y", 0, Global.GetScreenSize()[1]);
UI.SetEnabled( "Script items", "keybinds_y", false );
UI.SetEnabled( "Script items", "keybinds_x", false );
UI.SetEnabled( "Script items", "water_x", false );
UI.SetEnabled( "Script items", "water_y", false );
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;
}
function keybind_func() {
    if (UI.GetValue("Script items","Theme")==0)
    {
        var col = 255
        var col1 = 15
        var icon = Render.AddTexture("ot/lw/lwB.png");
    }
    else
    {
        var col = 0
        var col1 = 255
        var icon = Render.AddTexture("ot/lw/lwW.png");
    }
    var font = Render.AddFont( "Bahnschrift", 10, 900);
    var fontl = Render.AddFont( "Bahnschrift", 10, 100);
    var theme = UI.GetValue("Theme")
    var x = UI.GetValue("keybinds_x");
    var y = UI.GetValue("keybinds_y");
    var keybind = [];

    var swmode = UI.GetValue("Anti-Aim", "Extra", "Slow walk mode")
    var swmodes = (swmode == 0) ? "Accuracy" :
    (swmode == 1) ? "Slide fast" :
    (swmode == 2) ? "Slide slow" : "";

    keybind_info = [
    ["Trigger Bot", ["Legit", "GENERAL", "Triggerbot", "Enabled"], "[held]"],
    ["Double tap", ["Rage", "GENERAL", "Exploits", "Doubletap"], "[toggled]"],
    ["Hide shots", ["Rage", "GENERAL", "Exploits", "Hide shots"], "[toggled]"],
    ["Safe point", ["Rage", "GENERAL", "General", "Force safe point"], "[toggled]"],
    ["Body aim", ["Rage", "GENERAL", "General", "Force body aim"], "[toggled]"],
    ["Resolver override", ["Rage", "GENERAL", "General", "Resolver override"], "[toggled]"],
    ["Fake duck", ["Anti-Aim", "Extra", "Fake duck"], "[held]"],
    ["Slow walk", ["Anti-Aim", "Extra", "Slow walk"], "[held]"],
    ["Inverter", ["Anti-Aim", "Fake angles", "Inverter"], "[toggled]"],
    ["Edge jump", ["Misc", "GENERAL", "Movement", "Edge jump"], "[held]"],
    ["Auto peek", ["Misc", "GENERAL", "Movement", "Auto peek"], "[toggled]"],
    ];
    //["name bind", ["position bind"], "state"]

    for(var i in keybind_info) {
        bind_path = keybind_info[i][1];
        if(UI.IsHotkeyActive.apply(null, bind_path)){
            keybind.push(i);
        }
    }
    var h = 245
    var w = 25
    if (!UI.GetValue("Keybinds")) return;
    Render.FilledRect(x, y, h, w +20 + (21 * keybind.length), [col1, col1, col1,  255]);
    Render.StringCustom( x+18, y+5, 0, "Key binds", [ col, col, col, 255 ],font);
    Render.TexturedRect( x+205, y+5, 15, 15, icon);
  

    for(var j in keybind){
        bind = keybind[j];
        name = keybind_info[bind][0];
        state = keybind_info[bind][2];
        Render.StringCustom(x + 18, y + 40 + (j * 21), 0, name, [col, col, col, 175], fontl);
        Render.StringCustom(x + 225 - Render.TextSizeCustom(state, fontl)[0] - 3, y + 40 + (j * 21), 0, state, [col, col, col,  125], fontl);
    }
    move(x, y, h, w, "keybinds");
}
function Watermark_func() {
    user = Cheat.GetUsername();
    if (UI.GetValue("Script items","Theme")==0)
    {
        var col = 255
        var col1 = 15
        var icon = Render.AddTexture("ot/lw/lwB.png");
    }
    else
    {
        var col = 0
        var col1 = 255
        var icon = Render.AddTexture("ot/lw/lwW.png");
    }
    var x = UI.GetValue("water_x");
    var y = UI.GetValue("water_y");
    var h = 447
    var w = 24
    var font = Render.AddFont( "Bahnschrift", 10, 900);
    if (!UI.GetValue("Watermark")) return;
    Render.FilledRect(x, y, h, w, [col1, col1, col1,  255]);
    Render.StringCustom( x+18, y+5, 0, "legendware.pw     |     Ers      |     "+World.GetServerString()+"     |     Delay: "+Math.round(Local.Latency())+"ms     |     ", [ col, col, col, 255 ], font);
    Render.TexturedRect( x+407, y+5, 15, 15, icon);
    move(x, y, h, w, "water");
}

Global.RegisterCallback("Draw", "keybind_func");
Global.RegisterCallback("Draw", "Watermark_func");
Вот скрипт
Пожалуйста, авторизуйтесь для просмотра ссылки.

ССа не будет я забыл
Бля ща иконки скину забыл
архив распаковать так
...\ot\lw
 

Вложения

  • 11.4 KB Просмотры: 58
legacy king
Начинающий
Статус
Оффлайн
Регистрация
29 Апр 2021
Сообщения
156
Реакции[?]
17
Поинты[?]
1K
Взял основу кейбиндов у psychoon, т.к. не шарю за кряк вт
Я НЕ знаю джава скрипт, не бейте палками, моя первая работа с рендером
JavaScript:
UI.AddDropdown("Theme", ["Black", "White"]);
UI.AddCheckbox("Keybinds");
UI.AddCheckbox("Watermark");
UI.AddSliderInt("keybinds_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("keybinds_y", 0, Global.GetScreenSize()[1]);
UI.AddSliderInt("water_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("water_y", 0, Global.GetScreenSize()[1]);
UI.SetEnabled( "Script items", "keybinds_y", false );
UI.SetEnabled( "Script items", "keybinds_x", false );
UI.SetEnabled( "Script items", "water_x", false );
UI.SetEnabled( "Script items", "water_y", false );
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;
}
function keybind_func() {
    if (UI.GetValue("Script items","Theme")==0)
    {
        var col = 255
        var col1 = 15
        var icon = Render.AddTexture("ot/lw/lwB.png");
    }
    else
    {
        var col = 0
        var col1 = 255
        var icon = Render.AddTexture("ot/lw/lwW.png");
    }
    var font = Render.AddFont( "Bahnschrift", 10, 900);
    var fontl = Render.AddFont( "Bahnschrift", 10, 100);
    var theme = UI.GetValue("Theme")
    var x = UI.GetValue("keybinds_x");
    var y = UI.GetValue("keybinds_y");
    var keybind = [];

    var swmode = UI.GetValue("Anti-Aim", "Extra", "Slow walk mode")
    var swmodes = (swmode == 0) ? "Accuracy" :
    (swmode == 1) ? "Slide fast" :
    (swmode == 2) ? "Slide slow" : "";

    keybind_info = [
    ["Trigger Bot", ["Legit", "GENERAL", "Triggerbot", "Enabled"], "[held]"],
    ["Double tap", ["Rage", "GENERAL", "Exploits", "Doubletap"], "[toggled]"],
    ["Hide shots", ["Rage", "GENERAL", "Exploits", "Hide shots"], "[toggled]"],
    ["Safe point", ["Rage", "GENERAL", "General", "Force safe point"], "[toggled]"],
    ["Body aim", ["Rage", "GENERAL", "General", "Force body aim"], "[toggled]"],
    ["Resolver override", ["Rage", "GENERAL", "General", "Resolver override"], "[toggled]"],
    ["Fake duck", ["Anti-Aim", "Extra", "Fake duck"], "[held]"],
    ["Slow walk", ["Anti-Aim", "Extra", "Slow walk"], "[held]"],
    ["Inverter", ["Anti-Aim", "Fake angles", "Inverter"], "[toggled]"],
    ["Edge jump", ["Misc", "GENERAL", "Movement", "Edge jump"], "[held]"],
    ["Auto peek", ["Misc", "GENERAL", "Movement", "Auto peek"], "[toggled]"],
    ];
    //["name bind", ["position bind"], "state"]

    for(var i in keybind_info) {
        bind_path = keybind_info[i][1];
        if(UI.IsHotkeyActive.apply(null, bind_path)){
            keybind.push(i);
        }
    }
    var h = 245
    var w = 25
    if (!UI.GetValue("Keybinds")) return;
    Render.FilledRect(x, y, h, w +20 + (21 * keybind.length), [col1, col1, col1,  255]);
    Render.StringCustom( x+18, y+5, 0, "Key binds", [ col, col, col, 255 ],font);
    Render.TexturedRect( x+205, y+5, 15, 15, icon);
 

    for(var j in keybind){
        bind = keybind[j];
        name = keybind_info[bind][0];
        state = keybind_info[bind][2];
        Render.StringCustom(x + 18, y + 40 + (j * 21), 0, name, [col, col, col, 175], fontl);
        Render.StringCustom(x + 225 - Render.TextSizeCustom(state, fontl)[0] - 3, y + 40 + (j * 21), 0, state, [col, col, col,  125], fontl);
    }
    move(x, y, h, w, "keybinds");
}
function Watermark_func() {
    user = Cheat.GetUsername();
    if (UI.GetValue("Script items","Theme")==0)
    {
        var col = 255
        var col1 = 15
        var icon = Render.AddTexture("ot/lw/lwB.png");
    }
    else
    {
        var col = 0
        var col1 = 255
        var icon = Render.AddTexture("ot/lw/lwW.png");
    }
    var x = UI.GetValue("water_x");
    var y = UI.GetValue("water_y");
    var h = 447
    var w = 24
    var font = Render.AddFont( "Bahnschrift", 10, 900);
    if (!UI.GetValue("Watermark")) return;
    Render.FilledRect(x, y, h, w, [col1, col1, col1,  255]);
    Render.StringCustom( x+18, y+5, 0, "legendware.pw     |     Ers      |     "+World.GetServerString()+"     |     Delay: "+Math.round(Local.Latency())+"ms     |     ", [ col, col, col, 255 ], font);
    Render.TexturedRect( x+407, y+5, 15, 15, icon);
    move(x, y, h, w, "water");
}

Global.RegisterCallback("Draw", "keybind_func");
Global.RegisterCallback("Draw", "Watermark_func");
Вот скрипт
Пожалуйста, авторизуйтесь для просмотра ссылки.

ССа не будет я забыл
Бля ща иконки скину забыл
архив распаковать так
...\ot\lw
blue forum
 
legacy king
Начинающий
Статус
Оффлайн
Регистрация
29 Апр 2021
Сообщения
156
Реакции[?]
17
Поинты[?]
1K
хахаахх я блять всю ночь пытался делать, какой блять блю форум нахуй
поиск шрифтов бы трудности дал (там есть иконка) + смена темы белый или черный
 
nixer chmo
Пользователь
Статус
Оффлайн
Регистрация
21 Июн 2019
Сообщения
276
Реакции[?]
62
Поинты[?]
0
Взял основу кейбиндов у psychoon, т.к. не шарю за кряк вт
Я НЕ знаю джава скрипт, не бейте палками, моя первая работа с рендером
JavaScript:
UI.AddDropdown("Theme", ["Black", "White"]);
UI.AddCheckbox("Keybinds");
UI.AddCheckbox("Watermark");
UI.AddSliderInt("keybinds_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("keybinds_y", 0, Global.GetScreenSize()[1]);
UI.AddSliderInt("water_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("water_y", 0, Global.GetScreenSize()[1]);
UI.SetEnabled( "Script items", "keybinds_y", false );
UI.SetEnabled( "Script items", "keybinds_x", false );
UI.SetEnabled( "Script items", "water_x", false );
UI.SetEnabled( "Script items", "water_y", false );
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;
}
function keybind_func() {
    if (UI.GetValue("Script items","Theme")==0)
    {
        var col = 255
        var col1 = 15
        var icon = Render.AddTexture("ot/lw/lwB.png");
    }
    else
    {
        var col = 0
        var col1 = 255
        var icon = Render.AddTexture("ot/lw/lwW.png");
    }
    var font = Render.AddFont( "Bahnschrift", 10, 900);
    var fontl = Render.AddFont( "Bahnschrift", 10, 100);
    var theme = UI.GetValue("Theme")
    var x = UI.GetValue("keybinds_x");
    var y = UI.GetValue("keybinds_y");
    var keybind = [];

    var swmode = UI.GetValue("Anti-Aim", "Extra", "Slow walk mode")
    var swmodes = (swmode == 0) ? "Accuracy" :
    (swmode == 1) ? "Slide fast" :
    (swmode == 2) ? "Slide slow" : "";

    keybind_info = [
    ["Trigger Bot", ["Legit", "GENERAL", "Triggerbot", "Enabled"], "[held]"],
    ["Double tap", ["Rage", "GENERAL", "Exploits", "Doubletap"], "[toggled]"],
    ["Hide shots", ["Rage", "GENERAL", "Exploits", "Hide shots"], "[toggled]"],
    ["Safe point", ["Rage", "GENERAL", "General", "Force safe point"], "[toggled]"],
    ["Body aim", ["Rage", "GENERAL", "General", "Force body aim"], "[toggled]"],
    ["Resolver override", ["Rage", "GENERAL", "General", "Resolver override"], "[toggled]"],
    ["Fake duck", ["Anti-Aim", "Extra", "Fake duck"], "[held]"],
    ["Slow walk", ["Anti-Aim", "Extra", "Slow walk"], "[held]"],
    ["Inverter", ["Anti-Aim", "Fake angles", "Inverter"], "[toggled]"],
    ["Edge jump", ["Misc", "GENERAL", "Movement", "Edge jump"], "[held]"],
    ["Auto peek", ["Misc", "GENERAL", "Movement", "Auto peek"], "[toggled]"],
    ];
    //["name bind", ["position bind"], "state"]

    for(var i in keybind_info) {
        bind_path = keybind_info[i][1];
        if(UI.IsHotkeyActive.apply(null, bind_path)){
            keybind.push(i);
        }
    }
    var h = 245
    var w = 25
    if (!UI.GetValue("Keybinds")) return;
    Render.FilledRect(x, y, h, w +20 + (21 * keybind.length), [col1, col1, col1,  255]);
    Render.StringCustom( x+18, y+5, 0, "Key binds", [ col, col, col, 255 ],font);
    Render.TexturedRect( x+205, y+5, 15, 15, icon);


    for(var j in keybind){
        bind = keybind[j];
        name = keybind_info[bind][0];
        state = keybind_info[bind][2];
        Render.StringCustom(x + 18, y + 40 + (j * 21), 0, name, [col, col, col, 175], fontl);
        Render.StringCustom(x + 225 - Render.TextSizeCustom(state, fontl)[0] - 3, y + 40 + (j * 21), 0, state, [col, col, col,  125], fontl);
    }
    move(x, y, h, w, "keybinds");
}
function Watermark_func() {
    user = Cheat.GetUsername();
    if (UI.GetValue("Script items","Theme")==0)
    {
        var col = 255
        var col1 = 15
        var icon = Render.AddTexture("ot/lw/lwB.png");
    }
    else
    {
        var col = 0
        var col1 = 255
        var icon = Render.AddTexture("ot/lw/lwW.png");
    }
    var x = UI.GetValue("water_x");
    var y = UI.GetValue("water_y");
    var h = 447
    var w = 24
    var font = Render.AddFont( "Bahnschrift", 10, 900);
    if (!UI.GetValue("Watermark")) return;
    Render.FilledRect(x, y, h, w, [col1, col1, col1,  255]);
    Render.StringCustom( x+18, y+5, 0, "legendware.pw     |     Ers      |     "+World.GetServerString()+"     |     Delay: "+Math.round(Local.Latency())+"ms     |     ", [ col, col, col, 255 ], font);
    Render.TexturedRect( x+407, y+5, 15, 15, icon);
    move(x, y, h, w, "water");
}

Global.RegisterCallback("Draw", "keybind_func");
Global.RegisterCallback("Draw", "Watermark_func");
Вот скрипт
Пожалуйста, авторизуйтесь для просмотра ссылки.

ССа не будет я забыл
Бля ща иконки скину забыл
архив распаковать так
...\ot\lw
Может мне добавить в мой и немного твой код анимаций :)
Кинь дс скину ток тебе
 
Забаненный
Статус
Оффлайн
Регистрация
23 Авг 2020
Сообщения
2,110
Реакции[?]
597
Поинты[?]
10K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Взял основу кейбиндов у psychoon, т.к. не шарю за кряк вт
Я НЕ знаю джава скрипт, не бейте палками, моя первая работа с рендером
JavaScript:
UI.AddDropdown("Theme", ["Black", "White"]);
UI.AddCheckbox("Keybinds");
UI.AddCheckbox("Watermark");
UI.AddSliderInt("keybinds_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("keybinds_y", 0, Global.GetScreenSize()[1]);
UI.AddSliderInt("water_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("water_y", 0, Global.GetScreenSize()[1]);
UI.SetEnabled( "Script items", "keybinds_y", false );
UI.SetEnabled( "Script items", "keybinds_x", false );
UI.SetEnabled( "Script items", "water_x", false );
UI.SetEnabled( "Script items", "water_y", false );
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;
}
function keybind_func() {
    if (UI.GetValue("Script items","Theme")==0)
    {
        var col = 255
        var col1 = 15
        var icon = Render.AddTexture("ot/lw/lwB.png");
    }
    else
    {
        var col = 0
        var col1 = 255
        var icon = Render.AddTexture("ot/lw/lwW.png");
    }
    var font = Render.AddFont( "Bahnschrift", 10, 900);
    var fontl = Render.AddFont( "Bahnschrift", 10, 100);
    var theme = UI.GetValue("Theme")
    var x = UI.GetValue("keybinds_x");
    var y = UI.GetValue("keybinds_y");
    var keybind = [];

    var swmode = UI.GetValue("Anti-Aim", "Extra", "Slow walk mode")
    var swmodes = (swmode == 0) ? "Accuracy" :
    (swmode == 1) ? "Slide fast" :
    (swmode == 2) ? "Slide slow" : "";

    keybind_info = [
    ["Trigger Bot", ["Legit", "GENERAL", "Triggerbot", "Enabled"], "[held]"],
    ["Double tap", ["Rage", "GENERAL", "Exploits", "Doubletap"], "[toggled]"],
    ["Hide shots", ["Rage", "GENERAL", "Exploits", "Hide shots"], "[toggled]"],
    ["Safe point", ["Rage", "GENERAL", "General", "Force safe point"], "[toggled]"],
    ["Body aim", ["Rage", "GENERAL", "General", "Force body aim"], "[toggled]"],
    ["Resolver override", ["Rage", "GENERAL", "General", "Resolver override"], "[toggled]"],
    ["Fake duck", ["Anti-Aim", "Extra", "Fake duck"], "[held]"],
    ["Slow walk", ["Anti-Aim", "Extra", "Slow walk"], "[held]"],
    ["Inverter", ["Anti-Aim", "Fake angles", "Inverter"], "[toggled]"],
    ["Edge jump", ["Misc", "GENERAL", "Movement", "Edge jump"], "[held]"],
    ["Auto peek", ["Misc", "GENERAL", "Movement", "Auto peek"], "[toggled]"],
    ];
    //["name bind", ["position bind"], "state"]

    for(var i in keybind_info) {
        bind_path = keybind_info[i][1];
        if(UI.IsHotkeyActive.apply(null, bind_path)){
            keybind.push(i);
        }
    }
    var h = 245
    var w = 25
    if (!UI.GetValue("Keybinds")) return;
    Render.FilledRect(x, y, h, w +20 + (21 * keybind.length), [col1, col1, col1,  255]);
    Render.StringCustom( x+18, y+5, 0, "Key binds", [ col, col, col, 255 ],font);
    Render.TexturedRect( x+205, y+5, 15, 15, icon);


    for(var j in keybind){
        bind = keybind[j];
        name = keybind_info[bind][0];
        state = keybind_info[bind][2];
        Render.StringCustom(x + 18, y + 40 + (j * 21), 0, name, [col, col, col, 175], fontl);
        Render.StringCustom(x + 225 - Render.TextSizeCustom(state, fontl)[0] - 3, y + 40 + (j * 21), 0, state, [col, col, col,  125], fontl);
    }
    move(x, y, h, w, "keybinds");
}
function Watermark_func() {
    user = Cheat.GetUsername();
    if (UI.GetValue("Script items","Theme")==0)
    {
        var col = 255
        var col1 = 15
        var icon = Render.AddTexture("ot/lw/lwB.png");
    }
    else
    {
        var col = 0
        var col1 = 255
        var icon = Render.AddTexture("ot/lw/lwW.png");
    }
    var x = UI.GetValue("water_x");
    var y = UI.GetValue("water_y");
    var h = 447
    var w = 24
    var font = Render.AddFont( "Bahnschrift", 10, 900);
    if (!UI.GetValue("Watermark")) return;
    Render.FilledRect(x, y, h, w, [col1, col1, col1,  255]);
    Render.StringCustom( x+18, y+5, 0, "legendware.pw     |     Ers      |     "+World.GetServerString()+"     |     Delay: "+Math.round(Local.Latency())+"ms     |     ", [ col, col, col, 255 ], font);
    Render.TexturedRect( x+407, y+5, 15, 15, icon);
    move(x, y, h, w, "water");
}

Global.RegisterCallback("Draw", "keybind_func");
Global.RegisterCallback("Draw", "Watermark_func");
Вот скрипт
Пожалуйста, авторизуйтесь для просмотра ссылки.

ССа не будет я забыл
Бля ща иконки скину забыл
архив распаковать так
...\ot\lw
Молодец!
Только рендерить текстурку с рендером вантапа это конечно кринжак.
А так, все гуд.
Вместо нейма мог прописать Cheat.GetUsername() , насчет пинга мог просто переменную прогетать и все.
Ретарн вовсе после гета валуя не нужен.
4.5\5.
 
Эксперт
Статус
Оффлайн
Регистрация
10 Фев 2021
Сообщения
1,740
Реакции[?]
559
Поинты[?]
2K
Забаненный
Статус
Оффлайн
Регистрация
23 Авг 2020
Сообщения
2,110
Реакции[?]
597
Поинты[?]
10K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
я так и сделал, просто ник русский был, и вантап не мог отрендерить
поэтому сделал по другому
Я не помню где, но в каком-то скрипте рендерился русский текст.
 
Kodit izke
Забаненный
Статус
Оффлайн
Регистрация
9 Авг 2020
Сообщения
741
Реакции[?]
243
Поинты[?]
7K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Взял основу кейбиндов у psychoon, т.к. не шарю за кряк вт
Я НЕ знаю джава скрипт, не бейте палками, моя первая работа с рендером
JavaScript:
UI.AddDropdown("Theme", ["Black", "White"]);
UI.AddCheckbox("Keybinds");
UI.AddCheckbox("Watermark");
UI.AddSliderInt("keybinds_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("keybinds_y", 0, Global.GetScreenSize()[1]);
UI.AddSliderInt("water_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("water_y", 0, Global.GetScreenSize()[1]);
UI.SetEnabled( "Script items", "keybinds_y", false );
UI.SetEnabled( "Script items", "keybinds_x", false );
UI.SetEnabled( "Script items", "water_x", false );
UI.SetEnabled( "Script items", "water_y", false );
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;
}
function keybind_func() {
    if (UI.GetValue("Script items","Theme")==0)
    {
        var col = 255
        var col1 = 15
        var icon = Render.AddTexture("ot/lw/lwB.png");
    }
    else
    {
        var col = 0
        var col1 = 255
        var icon = Render.AddTexture("ot/lw/lwW.png");
    }
    var font = Render.AddFont( "Bahnschrift", 10, 900);
    var fontl = Render.AddFont( "Bahnschrift", 10, 100);
    var theme = UI.GetValue("Theme")
    var x = UI.GetValue("keybinds_x");
    var y = UI.GetValue("keybinds_y");
    var keybind = [];

    var swmode = UI.GetValue("Anti-Aim", "Extra", "Slow walk mode")
    var swmodes = (swmode == 0) ? "Accuracy" :
    (swmode == 1) ? "Slide fast" :
    (swmode == 2) ? "Slide slow" : "";

    keybind_info = [
    ["Trigger Bot", ["Legit", "GENERAL", "Triggerbot", "Enabled"], "[held]"],
    ["Double tap", ["Rage", "GENERAL", "Exploits", "Doubletap"], "[toggled]"],
    ["Hide shots", ["Rage", "GENERAL", "Exploits", "Hide shots"], "[toggled]"],
    ["Safe point", ["Rage", "GENERAL", "General", "Force safe point"], "[toggled]"],
    ["Body aim", ["Rage", "GENERAL", "General", "Force body aim"], "[toggled]"],
    ["Resolver override", ["Rage", "GENERAL", "General", "Resolver override"], "[toggled]"],
    ["Fake duck", ["Anti-Aim", "Extra", "Fake duck"], "[held]"],
    ["Slow walk", ["Anti-Aim", "Extra", "Slow walk"], "[held]"],
    ["Inverter", ["Anti-Aim", "Fake angles", "Inverter"], "[toggled]"],
    ["Edge jump", ["Misc", "GENERAL", "Movement", "Edge jump"], "[held]"],
    ["Auto peek", ["Misc", "GENERAL", "Movement", "Auto peek"], "[toggled]"],
    ];
    //["name bind", ["position bind"], "state"]

    for(var i in keybind_info) {
        bind_path = keybind_info[i][1];
        if(UI.IsHotkeyActive.apply(null, bind_path)){
            keybind.push(i);
        }
    }
    var h = 245
    var w = 25
    if (!UI.GetValue("Keybinds")) return;
    Render.FilledRect(x, y, h, w +20 + (21 * keybind.length), [col1, col1, col1,  255]);
    Render.StringCustom( x+18, y+5, 0, "Key binds", [ col, col, col, 255 ],font);
    Render.TexturedRect( x+205, y+5, 15, 15, icon);
  

    for(var j in keybind){
        bind = keybind[j];
        name = keybind_info[bind][0];
        state = keybind_info[bind][2];
        Render.StringCustom(x + 18, y + 40 + (j * 21), 0, name, [col, col, col, 175], fontl);
        Render.StringCustom(x + 225 - Render.TextSizeCustom(state, fontl)[0] - 3, y + 40 + (j * 21), 0, state, [col, col, col,  125], fontl);
    }
    move(x, y, h, w, "keybinds");
}
function Watermark_func() {
    user = Cheat.GetUsername();
    if (UI.GetValue("Script items","Theme")==0)
    {
        var col = 255
        var col1 = 15
        var icon = Render.AddTexture("ot/lw/lwB.png");
    }
    else
    {
        var col = 0
        var col1 = 255
        var icon = Render.AddTexture("ot/lw/lwW.png");
    }
    var x = UI.GetValue("water_x");
    var y = UI.GetValue("water_y");
    var h = 447
    var w = 24
    var font = Render.AddFont( "Bahnschrift", 10, 900);
    if (!UI.GetValue("Watermark")) return;
    Render.FilledRect(x, y, h, w, [col1, col1, col1,  255]);
    Render.StringCustom( x+18, y+5, 0, "legendware.pw     |     Ers      |     "+World.GetServerString()+"     |     Delay: "+Math.round(Local.Latency())+"ms     |     ", [ col, col, col, 255 ], font);
    Render.TexturedRect( x+407, y+5, 15, 15, icon);
    move(x, y, h, w, "water");
}

Global.RegisterCallback("Draw", "keybind_func");
Global.RegisterCallback("Draw", "Watermark_func");
Вот скрипт
Пожалуйста, авторизуйтесь для просмотра ссылки.

ССа не будет я забыл
Бля ща иконки скину забыл
архив распаковать так
...\ot\lw
очень круто мощно и прикольно, но зачем ты в функции пишешь путь и потом его проверяешь если можно сразу чез гет валуе гетать, то что ты используешь надо для анимации которой у тебя нету. Придрался к мелочам, но все же)
 
Эксперт
Статус
Оффлайн
Регистрация
10 Фев 2021
Сообщения
1,740
Реакции[?]
559
Поинты[?]
2K
очень круто мощно и прикольно, но зачем ты в функции пишешь путь и потом его проверяешь если можно сразу чез гет валуе гетать, то что ты используешь надо для анимации которой у тебя нету. Придрался к мелочам, но все же)
я говорю, пастил т.к. не знаю Js, и некоторые моменты различаются. И про какие анимки ты пишешь?
 
Kodit izke
Забаненный
Статус
Оффлайн
Регистрация
9 Авг 2020
Сообщения
741
Реакции[?]
243
Поинты[?]
7K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Сверху Снизу