не бухти
Пользователь
-
Автор темы
- #1
Вся идея была в красивом дизайне, вотермарки прошлый век, это функциональнее.
Настроек нет, все по дефолту.
You need download this - imgur.com/TlcXoHS to /ot/scripts/ava.png
Автор: august
Последнее обновление: 3 июля 2020.
Настроек нет, все по дефолту.
JavaScript:
function get_icon(a) {
var letter = ""
switch (a) {
case "desert eagle":
letter = "a"
break
case "dual berettas":
letter = "b"
break
case "five seven":
letter = "c"
break
case "glock 18":
letter = "d"
break
case "ak 47":
letter = "e"
break
case "aug":
letter = "f"
break
case "awp":
letter = "g"
break
case "famas":
letter = "h"
break
case "m249":
letter = "i"
break
case "g3sg1":
letter = "j"
break
case "galil ar":
letter = "k"
break
case "m4a4":
letter = "l"
break
case "m4a1 s":
letter = "m"
break
case "mac 10":
letter = "n"
break
case "p2000":
letter = "o"
break
case "mp5 sd":
letter = "p"
break
case "ump 45":
letter = "q"
break
case "xm1014":
letter = "r"
break
case "pp bizon":
letter = "s"
break
case "mag 7":
letter = "t"
break
case "negev":
letter = "u"
break
case "sawed off":
letter = "v"
break
case "tec 9":
letter = "w"
break
case "zeus x27":
letter = "x"
break
case "p250":
letter = "y"
break
case "mp7":
letter = "z"
break
case "mp9":
letter = "A"
break
case "nova":
letter = "B"
break
case "p90":
letter = "C"
break
case "scar 20":
letter = "D"
break
case "sg 553":
letter = "E"
break
case "ssg 08":
letter = "F"
break
case "knife":
letter = "G"
break
case "flashbang":
letter = "H"
break
case "high explosive grenade":
letter = "I"
break
case "smoke grenade":
letter = "J"
break
case "molotov":
letter = "K"
break
case "decoy grenade":
letter = "L"
break
case "incendiary grenade":
letter = "M"
break
case "c4 explosive":
letter = "N"
break
case "usp s":
letter = "P"
break
case "cz75 auto":
letter = "Q"
break
case "r8 revolver":
letter = "R"
break
case "bayonet":
letter = "V"
break
case "flip knife":
letter = "W"
break
case "gut knife":
letter = "X"
break
case "karambit":
letter = "Y"
break
case "m9 bayonet":
letter = "Z"
break
case "falchion knife":
letter = "1"
break
case "bowie knife":
letter = "2"
break
case "butterfly knife":
letter = "3"
break
case "shadow daggers":
letter = "4"
break
case "ursus knife":
letter = "5"
break
case "navaja knife":
letter = "6"
break
case "stiletto knife":
letter = "7"
break
case "karambit":
letter = "8"
break
case "huntsman knife":
letter = "0"
break
default:
letter = ""
break
}
return letter
}
function main() {
if (Entity.IsAlive(Entity.GetLocalPlayer()) == true) {
fake = Math.abs(Local.GetFakeYaw());
real = Math.abs(Local.GetRealYaw());
delta = 0;
if (fake > real)
delta = fake - real;
else
delta = real - fake;
localplayer_index = Entity.GetLocalPlayer();
localplayer_weapon = Entity.GetWeapon(localplayer_index);
weapon_name = Entity.GetName(localplayer_weapon);
x = Render.GetScreenSize()[0];
Render.Polygon([[x - 175, 55.0],[x - 150, 30.0],[x - 150, 55.0]], [0, 0, 0, 175]);
Render.GradientRect(x - 150, 30, 150, 25, 1, [0, 0, 0, 175], [0, 0, 0, 25]);
Render.GradientRect(x - 175, 55, 150, 1, 1, [0, 0, 0, 75], [0, 0, 0, 15]);
Render.GradientRect(x - 174, 56, 150, 1, 1, [0, 0, 0, 50], [0, 0, 0, 10]);
Render.GradientRect(x - 150, 30, 150, 1, 1, [225, 75, 175, 125], [120, 50, 200, 125]);
Render.GradientRect(x - 151, 31, 150, 1, 1, [225, 75, 175, 100], [120, 50, 200, 100]);
Render.GradientRect(x - 152, 32, 150, 1, 1, [225, 75, 175, 75], [120, 50, 200, 75]);
Render.GradientRect(x - 153, 33, 150, 1, 1, [225, 75, 175, 50], [120, 50, 200, 50]);
Render.GradientRect(x - 154, 34, 150, 1, 1, [225, 75, 175, 25], [120, 50, 200, 25]);
Render.TexturedRect(x - 50, 12, 40, 50, Render.AddTexture("ot/scripts/ava.png"));
if (UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap")) {
Render.FilledRect(x - 92, 40, 1, 11, [250, 250, 250, 50]);
if (Exploit.GetCharge() != 1) {
Render.String(x - 80, 38, 0, "T", [255, 255, 255, 125], 6)
Render.String(x - 145, 18, 0, "D T | S T A T E: 0", [255, 255, 255, 175], 3);
} else {
Render.String(x - 80, 38, 0, "S", [255, 255, 255, 200], 6)
Render.String(x - 145, 18, 0, "D T | S T A T E: 2", [255, 255, 255, 175], 3);
}
Render.String(x - 125, 39, 1, get_icon(weapon_name), [255, 255, 255, 200], 6);
} else if (UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Hide shots")) {
Render.String(x - 125, 39, 1, get_icon(weapon_name), [255, 255, 255, 200], 6);
Render.String(x - 145, 18, 0, "O N S H O T", [255, 255, 255, 175], 3);
} else {
Render.String(x - 125, 39, 1, get_icon(weapon_name), [255, 255, 255, 200], 6);
Render.String(x - 145, 18, 0, "F A K E L A G", [255, 255, 255, 175], 3);
}
Render.String(x - 175, 59, 0, "F A K E: " + delta.toFixed(0).toString(), [255, 255, 255, 150], 3);
}
}
Global.RegisterCallback("Draw", "main");
Автор: august
Последнее обновление: 3 июля 2020.
Последнее редактирование: