Памагите
-
Автор темы
- #1
Вя четыре
JavaScript:
var size = render.get_screen_size();
ui.add_checkbox("KeyBinds", "keybinds", 0);
ui.add_slider("KeyBins Location X", "location_keybind_x", 0, size[0]);
ui.add_slider("KeyBins Location Y", "location_keybind_y", 0, size[1]);
vars.set_int("js.location_keybind_x", 479);
vars.set_int("js.location_keybind_y", 850);
register_callback('render', function() {
if (vars.get_bool("js.keybinds")) {
var keybinds_list = [
["thirdperson","Thirdperson"],
["force_safepoints","Force Safepoints"],
["body_aim","Force Body"],
["override_damage","Override Damage"],
["ensure_lean","Ensure Lean"],
["inverter","Inverter"],
["fake_duck","Fake Duck"],
["slow_walk","Slow Walk"],
["doubletap","Double Tap"],
["hide_shots","Hide Shots"],
["peek_assist","Peek Assist"],
]
var binds = [];
var x = vars.get_int("js.location_keybind_x");
var y = vars.get_int("js.location_keybind_y");
for (var n in keybinds_list) {
if (vars.is_bind_active(keybinds_list[n][0])) binds.push(n);
}
}
render.filled_rect([x - 10, y - 20], [155, 23], [17, 17, 17, 100], 2);
render.picture("C:/w1ndy-yaw/binds.png", [x - 7, y - 23], [30, 30], 255)
render.text([x + 24, y - 8], [255, 255, 255, 255], 12, 4, "Keybinds");
for (var i in binds) {
render.filled_rect([x - 10, y + 7 + 16 * i - 4], [155, 16], [17, 17, 17, 50], 0)
render.text([x - 6, y + 14 + 15 * i - 4], [255, 255, 255, 255], 12, 0, keybinds_list[binds[i]][1]);
render.text([x + 121, y + 14 + 15 * i - 4], [255, 255, 255, 255], 12, 0, "[on]");
}
})
Вложения
-
7.5 KB Просмотры: 74
Последнее редактирование: