-
Автор темы
- #1
Чтобы установить шрифт кликните правой кнопкой мыши по шрифту и нажмите "Установить для всех пользователей"
JavaScript:
// Creator: Klient
// Discord: Klient#1690
Cheat.CursorInBox = function(x, y, length, height) {
var cursor = Input.GetCursorPosition()
if (cursor[0] > x && cursor[0] < x + length && cursor[1] > y && cursor[1] < y + height)
return true
return false
}
var x = "X";
var y = "Y";
X = function () {
return UI.GetValue(["Misc.", "Helpers", "General", x])
}
Y = function () {
return UI.GetValue(["Misc.", "Helpers", "General", y])
}
function sliders() {
UI.AddSliderInt(["Misc.", "Helpers", "General"], x, -630, Render.GetScreenSize()[0])
UI.AddSliderInt(["Misc.", "Helpers", "General"], y, -600, Render.GetScreenSize()[1])
UI.SetEnabled(["Misc.", "Helpers", "General", x], 0)
UI.SetEnabled(["Misc.", "Helpers", "General", y], 0)
}
sliders()
var menumove = false;
var waitforup = false;
var offsetx = 0;
var offsety = 0;
function checkMovement() {
var cursor = Input.GetCursorPosition()
var onmenu = Cheat.CursorInBox(X(), Y(), 180, 26)
if (UI.IsMenuOpen()) {
if (Input.IsKeyPressed(0x01) && !waitforup && onmenu) {
menumove = true
offsetx = cursor[0] - X()
offsety = cursor[1] - Y()
waitforup = true
}
if (!Input.IsKeyPressed(0x01)) {
menumove = false
waitforup = false
}
if (menumove) {
UI.SetValue(["Misc.", "Helpers", "General", "X"], cursor[0] - offsetx)
UI.SetValue(["Misc.", "Helpers", "General", "Y"], cursor[1] - offsety)
}
}
}
Cheat.RegisterCallback("Draw", "checkMovement")
Render.AddIcon = function(x, y, color, id) {
if (id == 1) {
Render.FilledRect(x, y - 1, 23, 15, color)
Render.FilledRect(x - 1, y, 25, 13, color)
Render.FilledRect(x + 2, y + 1, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 6, y + 1, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 10, y + 1, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 14, y + 1, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 18, y + 1, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 4, y + 5, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 8, y + 5, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 12, y + 5, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 16, y + 5, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 2, y + 9, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 6, y + 9, 11, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 18, y + 9, 3, 3, [0, 20, 20, alpha * 185])
}
}
var alpha = 0
var key = new Array();
function keybind() {
var font = Render.AddFont("MuseoSansCyrl-900", 13, 900)
var font1 = Render.AddFont("MuseoSansCyrl-500", 13, 500)
var frames = 8 * Globals.Frametime();
if (!UI.GetValue(["Rage", "Exploits", "Keys", "Key assignment", "Double tap"])) {
key.splice(key.indexOf("Double tap"))
}
if (!UI.GetValue(["Rage", "Exploits", "Keys", "Key assignment", "Hide shots"])) {
key.splice(key.indexOf("Hide shots"))
}
if (!UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Fake duck"])) {
key.splice(key.indexOf("Fake duck"))
}
if (!UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "AA Direction inverter"])) {
key.splice(key.indexOf("Anti-aim inverter"))
}
if (!UI.GetValue(["Rage", "General", "General", "Key assignment", "Force body aim"])) {
key.splice(key.indexOf("Force body aim"))
}
if (!UI.GetValue(["Rage", "General", "General", "Key assignment", "Force safe point"])) {
key.splice(key.indexOf("Force safe point"))
}
if (!UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Left direction"])) {
key.splice(key.indexOf("Left dir"))
}
if (!UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Right direction"])) {
key.splice(key.indexOf("Right dir"))
}
if (!UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Back direction"])) {
key.splice(key.indexOf("Back dir"))
}
if (UI.GetValue(["Rage", "Exploits", "Keys", "Key assignment", "Double tap"])) {
if (key.indexOf("Double tap") == -1)
key.push("Double tap")
}
if (UI.GetValue(["Rage", "Exploits", "Keys", "Key assignment", "Hide shots"])) {
if (key.indexOf("Hide shots") == -1)
key.push("Hide shots")
}
if (UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Fake duck"])) {
if (key.indexOf("Fake duck") == -1)
key.push("Fake duck")
}
if (UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "AA Direction inverter"])) {
if (key.indexOf("Anti-aim inverter") == -1)
key.push("Anti-aim inverter")
}
if (UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Left direction"])) {
if (key.indexOf("Left dir") == -1)
key.push("Left dir")
}
if (UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Back direction"])) {
if (key.indexOf("Back dir"))
key.push("Back dir")
}
if (UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Right direction"])) {
if (key.indexOf("Right dir"))
key.push("Right dir")
}
if (UI.GetValue(["Rage", "General", "General", "Key assignment", "Force safe point"])) {
if (key.indexOf("Force safe point"))
key.push("Force safe point")
}
if (UI.GetValue(["Rage", "General", "General", "Key assignment", "Force body aim"])) {
if (key.indexOf("Force body aim"))
key.push("Force body aim")
}
Render.FilledRect(X(), Y() - 1, 178, 26, [0, 20, 20, alpha * 185]);
Render.FilledRect(X() - 1, Y(), 180, 24, [0, 20, 20, alpha * 185]);
Render.FilledRect(X() - 1, Y(), 180, 27, [0, 20, 20, alpha * 185]);
Render.AddIcon(X() + 5, Y() + 5, [3, 128, 205, alpha * 255], 1)
Render.String(X() + 33, Y() + 3, 0, "Binds", [255, 255, 255, alpha * 255], font)
if (key.length > 0) {
alpha = Math.min(alpha + frames, 1);
} else {
alpha = alpha - frames;
if (alpha < 0) alpha = 0;
}
if (alpha > 0) {
for (i = 0; i < key.length; i++) {
switch (key[i]) {
case "Double tap":
Render.String(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.String(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Hide shots":
Render.String(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.String(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Fake duck":
Render.String(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.String(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Anti-aim inverter":
Render.String(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.String(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Left dir":
Render.String(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.String(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Back dir":
Render.String(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.String(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Right dir":
Render.String(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.String(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Force body aim":
Render.String(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.String(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Force safe point":
Render.String(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.String(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
}
}
}
}
Cheat.RegisterCallback("Draw", "keybind")
JavaScript:
// Creator: Klient
// Discord: Klient#1690
Cheat.CursorInBox = function(x, y, length, height) {
var cursor = Input.GetCursorPosition()
if (cursor[0] > x && cursor[0] < x + length && cursor[1] > y && cursor[1] < y + height)
return true
return false
}
var x = "X";
var y = "Y";
X = function () {
return UI.GetValue("Script items", x)
}
Y = function () {
return UI.GetValue("Script items", y)
}
function sliders() {
UI.AddSliderInt(x, -630, Render.GetScreenSize()[0])
UI.AddSliderInt(y, -600, Render.GetScreenSize()[1])
UI.SetEnabled("Script items", x, false)
UI.SetEnabled("Script items", y, false)
}
sliders()
var menumove = false;
var waitforup = false;
var offsetx = 0;
var offsety = 0;
function checkMovement() {
var cursor = Input.GetCursorPosition()
var onmenu = Cheat.CursorInBox(X(), Y(), 180, 26)
if (UI.IsMenuOpen()) {
if (Input.IsKeyPressed(0x01) && !waitforup && onmenu) {
menumove = true
offsetx = cursor[0] - X()
offsety = cursor[1] - Y()
waitforup = true
}
if (!Input.IsKeyPressed(0x01)) {
menumove = false
waitforup = false
}
if (menumove) {
UI.SetValue("Script items", "X", cursor[0] - offsetx)
UI.SetValue("Script items", "Y", cursor[1] - offsety)
}
}
}
Cheat.RegisterCallback("Draw", "checkMovement")
Render.AddIcon = function(x, y, color, id) {
if (id == 1) {
Render.FilledRect(x, y - 1, 23, 15, color)
Render.FilledRect(x - 1, y, 25, 13, color)
Render.FilledRect(x + 2, y + 1, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 6, y + 1, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 10, y + 1, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 14, y + 1, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 18, y + 1, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 4, y + 5, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 8, y + 5, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 12, y + 5, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 16, y + 5, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 2, y + 9, 3, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 6, y + 9, 11, 3, [0, 20, 20, alpha * 185])
Render.FilledRect(x + 18, y + 9, 3, 3, [0, 20, 20, alpha * 185])
}
}
var alpha = 0
var key = new Array();
function keybind() {
var font = Render.AddFont("MuseoSansCyrl-900", 10, 900)
var font1 = Render.AddFont("MuseoSansCyrl-500", 10, 500)
var frames = 8 * Globals.Frametime();
if (!UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
key.splice(key.indexOf("Double tap"))
}
if (!UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
key.splice(key.indexOf("Hide shots"))
}
if (!UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
key.splice(key.indexOf("Fake duck"))
}
if (!UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
key.splice(key.indexOf("Anti-aim inverter"))
}
if (!UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
key.splice(key.indexOf("Force body aim"))
}
if (!UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
key.splice(key.indexOf("Force safe point"))
}
if (!UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
key.splice(key.indexOf("Slow walk"))
}
if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
if (key.indexOf("Double tap") == -1)
key.push("Double tap")
}
if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
if (key.indexOf("Hide shots") == -1)
key.push("Hide shots")
}
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
if (key.indexOf("Fake duck") == -1)
key.push("Fake duck")
}
if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
if (key.indexOf("Anti-aim inverter") == -1)
key.push("Anti-aim inverter")
}
if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
if (key.indexOf("Force body aim") == -1)
key.push("Force body aim")
}
if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
if (key.indexOf("Force safe point"))
key.push("Force safe point")
}
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
if (key.indexOf("Slow walk"))
key.push("Slow walk")
}
Render.FilledRect(X(), Y() - 1, 178, 26, [0, 20, 20, alpha * 185]);
Render.FilledRect(X() - 1, Y(), 180, 24, [0, 20, 20, alpha * 185]);
Render.FilledRect(X() - 1, Y(), 180, 27, [0, 20, 20, alpha * 185]);
Render.AddIcon(X() + 5, Y() + 5, [3, 128, 205, alpha * 255], 1)
Render.StringCustom(X() + 33, Y() + 3, 0, "Binds", [255, 255, 255, alpha * 255], font)
if (key.length > 0) {
alpha = Math.min(alpha + frames, 1);
} else {
alpha = alpha - frames;
if (alpha < 0) alpha = 0;
}
if (alpha > 0) {
for (i = 0; i < key.length; i++) {
switch (key[i]) {
case "Double tap":
Render.StringCustom(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.StringCustom(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Hide shots":
Render.StringCustom(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.StringCustom(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Fake duck":
Render.StringCustom(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.StringCustom(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Anti-aim inverter":
Render.StringCustom(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.StringCustom(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Slow walk":
Render.StringCustom(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.StringCustom(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Force body aim":
Render.StringCustom(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.StringCustom(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
case "Force safe point":
Render.StringCustom(X() + 5, Y() + 28 + 18 * i, 0, key[i], [255, 255, 255, alpha * 255], font1)
Render.StringCustom(X() + 155, Y() + 28 + 18 * i, 0, "on", [255, 255, 255, alpha * 255], font1)
break;
}
}
}
}
Cheat.RegisterCallback("Draw", "keybind")
Вложения
-
79.6 KB Просмотры: 666
Последнее редактирование: