Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

JS-скрипт Metamod keybinds AKA L33T для кряка в3

  • Автор темы Автор темы Saara
  • Дата начала Дата начала
З̶а̶б̶а̶н̶е̶н̶н̶ы̶й
Забаненный
Забаненный
Статус
Оффлайн
Регистрация
20 Июл 2019
Сообщения
313
Реакции
33
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
ну что было скучна
ss:
5Hsnpo0L7q.png



// gay gay gay

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 keybinds()
{
var h = [];
const fontpixel = Render.AddFont( "Arial", 9, 100);

if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
h.push("Slow motion")
}
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
h.push("Duck peek assist")
}
if (UI.IsHotkeyActive("Misc", "General", "Movement", "Auto peek")) {
h.push("Auto Peek")
}
if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
h.push("Anti-Aim invert")
}
if (UI.IsHotkeyActive("Rage", "General", "General", "Force safe point")) {
h.push("Safe Point")
}
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 + 4) * 127 + 128),
255
];


Render.FilledRect(x, y, 135, 20, [15, 15, 15, 150]);
Render.StringCustom(x + 37, y + 3, 0, "keybindings", [255, 255, 255, 255], fontpixel);
Render.FilledRect(x, y, 135, 2, [81, 110, 231, 255]);
Render.FilledRect(x, y + 20, 170, 20 + 15 * (h.length - 1), [15, 15, 15, 0]);
for (i = 0; i < h.length; i++)
{
Render.StringCustom(x + 5, y + 23 + 15 * i, 0, h, [255, 255, 255, 255], fontpixel);
Render.StringCustom(x + 111, y + 23 + 15 * i, 0, "[on]", [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", "keybinds");

Ошибка будет мне похуй
 
Последнее редактирование:
Во первых, это джаваскрипт, а не плюсы
Во вторых, виш уже сделал нормальные кейбинды
В третьих, говно, а не кейбинды, даже просто размер таба не изменяется в зависимости от включенной функции
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Во первых, это джаваскрипт, а не плюсы
Во вторых, виш уже сделал нормальные кейбинды
В третьих, говно, а не кейбинды, даже просто размер таба не изменяется в зависимости от включенной функции
Похуй на твое Мнение
 
ну что было скучна
ss:Посмотреть вложение 104558


// gay gay gay

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 keybinds()
{
var h = [];
const fontpixel = Render.AddFont( "Arial", 9, 100);

if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
h.push("Slow motion")
}
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
h.push("Duck peek assist")
}
if (UI.IsHotkeyActive("Misc", "General", "Movement", "Auto peek")) {
h.push("Auto Peek")
}
if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
h.push("Anti-Aim invert")
}
if (UI.IsHotkeyActive("Rage", "General", "General", "Force safe point")) {
h.push("Safe Point")
}
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 + 4) * 127 + 128),
255
];


Render.FilledRect(x, y, 135, 20, [15, 15, 15, 150]);
Render.StringCustom(x + 37, y + 3, 0, "keybindings", [255, 255, 255, 255], fontpixel);
Render.FilledRect(x, y, 135, 2, [81, 110, 231, 255]);
Render.FilledRect(x, y + 20, 170, 20 + 15 * (h.length - 1), [15, 15, 15, 0]);
for (i = 0; i < h.length; i++)
{
Render.StringCustom(x + 5, y + 23 + 15 * i, 0, h, [255, 255, 255, 255], fontpixel);
Render.StringCustom(x + 111, y + 23 + 15 * i, 0, "[on]", [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", "keybinds");

Ошибка будет мне похуй
дай прост джску без c++
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
ну что было скучна
ss:Посмотреть вложение 104558


// gay gay gay

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 keybinds()
{
var h = [];
const fontpixel = Render.AddFont( "Arial", 9, 100);

if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
h.push("Slow motion")
}
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
h.push("Duck peek assist")
}
if (UI.IsHotkeyActive("Misc", "General", "Movement", "Auto peek")) {
h.push("Auto Peek")
}
if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
h.push("Anti-Aim invert")
}
if (UI.IsHotkeyActive("Rage", "General", "General", "Force safe point")) {
h.push("Safe Point")
}
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 + 4) * 127 + 128),
255
];


Render.FilledRect(x, y, 135, 20, [15, 15, 15, 150]);
Render.StringCustom(x + 37, y + 3, 0, "keybindings", [255, 255, 255, 255], fontpixel);
Render.FilledRect(x, y, 135, 2, [81, 110, 231, 255]);
Render.FilledRect(x, y + 20, 170, 20 + 15 * (h.length - 1), [15, 15, 15, 0]);
for (i = 0; i < h.length; i++)
{
Render.StringCustom(x + 5, y + 23 + 15 * i, 0, h, [255, 255, 255, 255], fontpixel);
Render.StringCustom(x + 111, y + 23 + 15 * i, 0, "[on]", [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", "keybinds");

Ошибка будет мне похуй
сделай для в4 жпжпжпжпжпжпжп
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
я канеш всё понимаю но я НИКАК НЕ МОГУ ЭТОТ КОД НОРМАЛЬНО СКОПИРОВАТь скиньте уже ктото нормальную ДАННУЮ js как файл
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
я канеш всё понимаю но я НИКАК НЕ МОГУ ЭТОТ КОД НОРМАЛЬНО СКОПИРОВАТь скиньте уже ктото нормальную ДАННУЮ js как файл
сделай txt файл вставь всю хуйню а напиши вмесно .txt .js :kek:
 
Назад
Сверху Снизу