Эксперт
-
Автор темы
- #1
Взял основу кейбиндов у psychoon, т.к. не шарю за кряк вт
Я НЕ знаю джава скрипт, не бейте палками, моя первая работа с рендером
Вот скрипт
ССа не будет я забыл
Бля ща иконки скину забыл
архив распаковать так
...\ot\lw
Я НЕ знаю джава скрипт, не бейте палками, моя первая работа с рендером
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