JS-скрипт "skeet" keybinds [OTC4/OT4]

Эксперт
Статус
Оффлайн
Регистрация
22 Мар 2020
Сообщения
2,191
Реакции[?]
484
Поинты[?]
3K
Шрифт заменил, хуйня какая-то
creater - prince1337 , я переписал скрипт на в4.
JavaScript:
UI.AddSubTab(["Rage", "SUBTAB_MGR"], "Yumeno")
UI.AddSliderInt(["Rage", "Yumeno", "Yumeno"], "keybinds_x", 0, Render.GetScreenSize()[0])
UI.AddSliderInt(["Rage", "Yumeno", "Yumeno"], "keybinds_y", 0, Render.GetScreenSize()[1])
const screen = Global.GetScreenSize();
var stored = false;
var x_offs = 0;
var y_offs = 0;

var info = [
   ["DOUBLE TAP", [["Rage", "Exploits", "Keys", "Double tap"]]],
   ["HIDE SHOT", [["Rage", "Exploits", "Keys", "Hide shots"]]],
   ["FAKE DUCK", [["Rage", "Anti Aim", "General", "Key assignment", "Fake duck"]]],
   ["BODY AIM", [["Rage", "General", "General", "Key assignment", "Force body aim"]]],
   ["SAFE POINT", [["Rage", "General", "General", "Key assignment", "Force safe point"]]]
]
const in_bounds = function(vec, x, y, x2, y2){
   return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}
const Render_outlined = function(x, y, a, text, color, font){
   Render.String(x + 1, y, a, text, [0, 0, 0, 255], font );
   Render.String(x - 1, y, a, text, [0, 0, 0, 255], font );
   Render.String(x, y + 1, a, text, [0, 0, 0, 255], font );
   Render.String(x, y - 1, a, text, [0, 0, 0, 255], font );
   Render.String(x, y, a, text, color, font );
}
const keybinds = function(){
   var active_binds = [];
   const font = Render.GetFont("Tahoma.ttf", 8, false);
   const x = UI.GetValue(["Rage", "Yumeno", "Yumeno", "keybinds_x"]), y = UI.GetValue(["Rage", "Yumeno", "Yumeno", "keybinds_y"]);
   for(var j in info){
      if(UI.GetValue.apply(null, info[j][1])) active_binds.push(j);
   }

   Render.FilledRect(x, y, 200, 15, [10, 10, 10, 255]);
   Render.FilledRect(x, y + 15, 200, 19 + 19 * (active_binds.length - 1), [15, 15, 15, 240]);
   Render.GradientRect(x, y, 100, 1, 1, [55, 177, 218, 255], [203, 70, 205, 255]);
   Render.GradientRect(x + 100, y, 100, 1, 1, [203, 70, 205, 255], [204, 227, 53, 255]);
   Render_outlined(x + 100, y + 3, 1, "KEYBINDS", [255, 255, 255, 255], font);
   for (var i in active_binds){
      Render_outlined(x + 8, y + 20 + 16 * i, 0, info[active_binds[i]][0], [255, 255, 255, 255], font);
      Render_outlined(x + 168, y + 20 + 16 * i, 0, "ACTIVE", [150, 255, 0, 255], font);
   }
   if(UI.IsMenuOpen() && Input.IsKeyPressed(0x1)){
      const mouse_pos = Global.GetCursorPosition();
      if (in_bounds(mouse_pos, x, y, x + 200, y + 40)) {
         if(!stored){
            x_offs = mouse_pos[0] - x;
            y_offs = mouse_pos[1] - y;
            stored = true;
         }
         UI.SetValue(["Rage", "Yumeno", "Yumeno", "keybinds_x"], mouse_pos[0] - x_offs);
         UI.SetValue(["Rage", "Yumeno", "Yumeno", "keybinds_y"], mouse_pos[1] - y_offs);
      }
   } else if(stored) stored = false;
}
Cheat.RegisterCallback("Draw", "keybinds");
1634161382196.png
 

Вложения

Участник
Статус
Оффлайн
Регистрация
14 Сен 2019
Сообщения
856
Реакции[?]
248
Поинты[?]
2K
Забаненный
Статус
Оффлайн
Регистрация
5 Ноя 2021
Сообщения
6
Реакции[?]
1
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
шрифт говно
 
Эксперт
Статус
Оффлайн
Регистрация
14 Ноя 2020
Сообщения
1,796
Реакции[?]
586
Поинты[?]
2K
Шрифт заменил, хуйня какая-то
creater - prince1337 , я переписал скрипт на в4.
JavaScript:
UI.AddSubTab(["Rage", "SUBTAB_MGR"], "Yumeno")
UI.AddSliderInt(["Rage", "Yumeno", "Yumeno"], "keybinds_x", 0, Render.GetScreenSize()[0])
UI.AddSliderInt(["Rage", "Yumeno", "Yumeno"], "keybinds_y", 0, Render.GetScreenSize()[1])
const screen = Global.GetScreenSize();
var stored = false;
var x_offs = 0;
var y_offs = 0;

var info = [
   ["DOUBLE TAP", [["Rage", "Exploits", "Keys", "Double tap"]]],
   ["HIDE SHOT", [["Rage", "Exploits", "Keys", "Hide shots"]]],
   ["FAKE DUCK", [["Rage", "Anti Aim", "General", "Key assignment", "Fake duck"]]],
   ["BODY AIM", [["Rage", "General", "General", "Key assignment", "Force body aim"]]],
   ["SAFE POINT", [["Rage", "General", "General", "Key assignment", "Force safe point"]]]
]
const in_bounds = function(vec, x, y, x2, y2){
   return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}
const Render_outlined = function(x, y, a, text, color, font){
   Render.String(x + 1, y, a, text, [0, 0, 0, 255], font );
   Render.String(x - 1, y, a, text, [0, 0, 0, 255], font );
   Render.String(x, y + 1, a, text, [0, 0, 0, 255], font );
   Render.String(x, y - 1, a, text, [0, 0, 0, 255], font );
   Render.String(x, y, a, text, color, font );
}
const keybinds = function(){
   var active_binds = [];
   const font = Render.GetFont("Tahoma.ttf", 8, false);
   const x = UI.GetValue(["Rage", "Yumeno", "Yumeno", "keybinds_x"]), y = UI.GetValue(["Rage", "Yumeno", "Yumeno", "keybinds_y"]);
   for(var j in info){
      if(UI.GetValue.apply(null, info[j][1])) active_binds.push(j);
   }

   Render.FilledRect(x, y, 200, 15, [10, 10, 10, 255]);
   Render.FilledRect(x, y + 15, 200, 19 + 19 * (active_binds.length - 1), [15, 15, 15, 240]);
   Render.GradientRect(x, y, 100, 1, 1, [55, 177, 218, 255], [203, 70, 205, 255]);
   Render.GradientRect(x + 100, y, 100, 1, 1, [203, 70, 205, 255], [204, 227, 53, 255]);
   Render_outlined(x + 100, y + 3, 1, "KEYBINDS", [255, 255, 255, 255], font);
   for (var i in active_binds){
      Render_outlined(x + 8, y + 20 + 16 * i, 0, info[active_binds[i]][0], [255, 255, 255, 255], font);
      Render_outlined(x + 168, y + 20 + 16 * i, 0, "ACTIVE", [150, 255, 0, 255], font);
   }
   if(UI.IsMenuOpen() && Input.IsKeyPressed(0x1)){
      const mouse_pos = Global.GetCursorPosition();
      if (in_bounds(mouse_pos, x, y, x + 200, y + 40)) {
         if(!stored){
            x_offs = mouse_pos[0] - x;
            y_offs = mouse_pos[1] - y;
            stored = true;
         }
         UI.SetValue(["Rage", "Yumeno", "Yumeno", "keybinds_x"], mouse_pos[0] - x_offs);
         UI.SetValue(["Rage", "Yumeno", "Yumeno", "keybinds_y"], mouse_pos[1] - y_offs);
      }
   } else if(stored) stored = false;
}
Cheat.RegisterCallback("Draw", "keybinds");
Посмотреть вложение 175705
В ориге был шрифт smallest-pixel-7
 
Сверху Снизу