Памагите
-
Автор темы
- #1
Да.
JavaScript:
var size = render.get_screen_size();
ui.add_checkbox("Watermark", "watermark")
ui.add_slider("Watermark X", "l_x", 0, size[0]);
ui.add_slider("Watermark Y", "l_y", 0, size[1]);
ui.add_checkbox("Keybinds ( Concept )", "keybinds")
ui.add_slider("Keybinds X", "l1_x", 0, size[0]);
ui.add_slider("Keybinds Y", "l2_y", 0, size[1]);
// Ватермарка
register_callback("render", function() {
if (!vars.get_bool("js.watermark")) return;
var time = (new Date()).toTimeString().substring(0, 8);
var x = vars.get_int("js.l_x");
var y = vars.get_int("js.l_y");
{
// Внутреность
render.filled_rect([x - 50, y - 50], [181, 22], [19, 17, 18, 255], 0);
render.filled_rect([x - 50, y - 50], [181, 2], [255, 255, 255, 255], 0);
// Текст
render.text([x - 48, y - 38], [255, 255, 255, 255], 12, 4, "nixware.cc | user | " + time )
}
})
//yt w1ndyxz
// Бинды
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"],
]
// Отрисовка кейбиндов
register_callback("render", function() {
if (vars.get_bool("js.keybinds")) {
var binds = [];
var x = vars.get_int("js.l1_x");
var y = vars.get_int("js.l2_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], [181, 22], [19, 17, 18, 255], 0);
render.rect([x - 10, y - 20], [181, 2], [255, 255, 255, 255], 0);;
// Текст ( Keybinds )
render.text([x - 6, y - 9], [255, 255, 255, 255], 12, 4, "Keybinds");
for (var i in binds) {
// Текст
render.text([x - 6, y + 13 + 15 * i - 4], [255, 255, 255, 255], 12, 0, keybinds_list[binds[i]][1]);
render.text([x + 146, y + 13 + 15 * i - 4], [255, 255, 255, 255], 12, 0, "[on]");
}
})
Вложения
-
64.1 KB Просмотры: 320
Последнее редактирование: