lyric
-
Автор темы
- #1
JavaScript:
// by uroo#9720[/CENTER]
// enjoy
UI.AddSliderInt("statusbar_x", 0, Global.GetScreenSize()[0]);
UI.AddSliderInt("statusbar_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)
}
var fa = 0;
var sa = 0;
function statusbar() {
if (!World.GetServerString()) return;
const x = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "statusbar_x"),
y = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "statusbar_y");
const frametime = Math.round(1 / Global.Frametime() - 10).toString()
var ping = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString()
}
var frames = 8 * Globals.Frametime();
var font = Render.AddFont("Verdana", 8, 100);
var text = "novolinehook ";
var text1 = "fps";
var text2 = " "+frametime+"";
var text3 = "ping";
var text4 = " "+ping+"";
var text5 = " disabled";
var text6 = " enabled";
var gay = "antiaim";
var gay1 = "edge";
var gay2 = "fakelag";
var color = [89, 89, 89, 255];
var w = Render.TextSizeCustom(text, font)[0] + 8;
Render.FilledRect(x - 1, y, w, 85, [0, 0, 0, 255]);
Render.FilledRect(x + 1, y, w, 85, [0, 0, 0, 255]);
Render.FilledRect(x, y, w, 84, color);
Render.FilledRect(x, y, w, 18, [17, 17, 17, 255]);
Render.StringCustom(x + 3, y + 3, 0, text, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 2, 0, text, [255, 255, 255, 255], font);
/////////////////////////////////////////////////////////////////////
Render.StringCustom(x + 3, y + 19, 0, text1, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 18, 0, text1, [255, 255, 255, 255], font);
Render.StringCustom(x + 3, y + 19, 0, text2, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 18, 0, text2, [0, 255, 0, 255], font);
/////////////////////////////////////////////////////////////////////
Render.StringCustom(x + 3, y + 31, 0, text3, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 30, 0, text3, [255, 255, 255, 255], font);
Render.StringCustom(x + 3, y + 31, 0, text4, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 30, 0, text4, [0, 255, 0, 255], font);
/////////////////////////////////////////////////////////////////////
if (!UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Enabled")) {
Render.StringCustom(x + 3, y + 44, 0, gay, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 43, 0, gay, [255, 255, 255, 255], font);
Render.StringCustom(x + 3, y + 44, 0, text5, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 43, 0, text5, [255, 0, 0, 255], font);
} else {
Render.StringCustom(x + 3, y + 44, 0, gay, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 43, 0, gay, [255, 255, 255, 255], font);
Render.StringCustom(x + 3, y + 44, 0, text6, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 43, 0, text6, [0, 255, 0, 255], font);
}
if (!UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Edge jump")) {
Render.StringCustom(x + 3, y + 56, 0, gay1, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 55, 0, gay1, [255, 255, 255, 255], font);
Render.StringCustom(x + 3, y + 56, 0, text5, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 55, 0, text5, [255, 0, 0, 255], font);
} else {
Render.StringCustom(x + 3, y + 56, 0, gay1, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 55, 0, gay1, [255, 255, 255, 255], font);
Render.StringCustom(x + 3, y + 56, 0, text6, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 55, 0, text6, [0, 255, 0, 255], font);
}
if (!UI.GetValue("Anti-Aim", "Fake-Lag", "Enabled")) {
Render.StringCustom(x + 3, y + 69, 0, gay2, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 68, 0, gay2, [255, 255, 255, 255], font);
Render.StringCustom(x + 3, y + 69, 0, text5, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 68, 0, text5, [255, 0, 0, 255], font);
} else {
Render.StringCustom(x + 3, y + 69, 0, gay2, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 68, 0, gay2, [255, 255, 255, 255], font);
Render.StringCustom(x + 3, y + 69, 0, text6, [0, 0, 0, 255], font);
Render.StringCustom(x + 2, y + 68, 0, text6, [0, 255, 0, 255], font);
}
if (Global.IsKeyPressed(1) && UI.IsMenuOpen()) {
const mouse_pos = Global.GetCursorPosition();
if (in_bounds(mouse_pos, x, y, x + w, y + 30)) {
UI.SetValue("Misc", "JAVASCRIPT", "Script items", "statusbar_x", mouse_pos[0] - w / 2);
UI.SetValue("Misc", "JAVASCRIPT", "Script items", "statusbar_y", mouse_pos[1] - 20);
}
}
}
Global.RegisterCallback("Draw", "statusbar");
Пожалуйста, авторизуйтесь для просмотра ссылки.
Последнее редактирование: