Эксперт
-
Автор темы
- #1
Пожалуйста, авторизуйтесь для просмотра ссылки.
Код:
UI.AddCheckbox('Indicators'),UI.AddSliderInt("Y Adding", 5, 75), UI.AddHotkey ("Freestand")
function draw(){
local = Entity.GetLocalPlayer();
var keybinds = [];
var screensize = Global.GetScreenSize();
var font = Render.AddFont("Tahoma", 7, 500);
var sosi = UI.GetValue("Script items", "Indicators");
real_yaw = Local.GetRealYaw();
fake_yaw = Local.GetFakeYaw();
add_y = UI.GetValue("Script items", "Y Adding")
delta = Math.min(Math.abs(real_yaw - fake_yaw) /2, 60).toFixed(0);
var info = [
["FREESTAND", ["JAVASCRIPT", "Script items", "Freestand"], [209, 159, 230, 255], [0, 0, 0, 255]],
["DT", ["Rage", "GENERAL", "Exploits", "Doubletap"], Exploit.GetCharge() == 1 ? [25, 255, 25, 255] : [255, 0, 0, 255]],
["AA", ["Rage", "GENERAL", "Exploits", "Hide shots"], [255, 255, 255, 255], [0, 0, 0, 255]],
["BODY", ["Rage", "GENERAL", "Force body aim"], [10, 228, 155, 255]],
["DUCK", ["Anti-Aim", "Extra", "Fake duck"], [255, 255, 255, 255]],
];
if (sosi && Entity.IsValid(local) && Entity.IsAlive(local)) {
for(var i in info){
if(UI.IsHotkeyActive.apply(null, info[i][1])){
keybinds.push(i);
}
}
for(var j in keybinds) {
Render.StringCustom(screensize[0] / 2+ 2, screensize[1] / 2 + 9 + add_y - (j * -8), 0, info[keybinds[j]][0], [11,11,11,255], font);
Render.StringCustom(screensize[0] / 2+ 2, screensize[1] / 2 + 10 + add_y - (j * -8), 0, info[keybinds[j]][0], info[keybinds[j]][2], font); }
Render.StringCustom(screensize[0] / 2+ 2, screensize[1] / 2 + 2+ add_y, 0, "IDEAL YAW", [ 0, 0, 0, 255 ], font);
Render.StringCustom(screensize[0] / 2+ 2, screensize[1] / 2 + 1+ add_y , 0, "IDEAL YAW", delta < 24 ? [220, 0, 29, 200] : [220, 135, 49, 255], font); }
{
}
}
Cheat.RegisterCallback("Draw", "draw");