Начинающий
-
Автор темы
- #1
I made / paste this script hope u like it
Код:
// made by star. # 3881
UI.AddCheckbox ("Improved Scope");
UI.AddCheckbox ("Custom Scope");
UI.AddColorPicker ("Scope color");
UI.AddSliderInt ("Scope lines High", 0, 1000);
UI.AddCheckbox ("Show Viewmodel");
UI.AddCheckbox ("Custom Scope Hand Disstance");
UI.AddSliderInt ("Scope Hand Disstance", -40.00, 40.00);
var og = UI.GetValue ("Misc", "SKINS", "Viewmodel", "FOV")
function menu_setup () {
if (UI.GetValue ("Script items", "Improved Scope") && UI.GetValue ("Script items", "Custom Scope")) {
UI.SetEnabled ('Script items', 'Scope color', 1)
UI.SetEnabled ('Script items', 'Scope lines High', 1)
} else {
UI.SetEnabled ('Script items', 'Scope color', 0)
UI.SetEnabled ('Script items', 'Scope lines High', 0)
}
if (UI.GetValue ("Script items", "Improved Scope") && UI.GetValue ("Script items", "Show Viewmodel")) {
UI.SetEnabled ('Script items', 'Custom Scope Hand Disstance', 1)
} else {
UI.SetEnabled ('Script items', 'Custom Scope Hand Disstance', 0)
}
if (UI.GetValue ("Script items", "Improved Scope") && UI.GetValue ("Script items", "Custom Scope Hand Disstance")) {
UI.SetEnabled ('Script items', 'Scope Hand Disstance', 1)
} else {
UI.SetEnabled ('Script items', 'Scope Hand Disstance', 0)
}
UI.SetEnabled ('Script items', 'Custom Scope', UI.GetValue ("Script items", "Improved Scope"))
UI.SetEnabled ('Script items', 'Show Viewmodel', UI.GetValue ("Script items", "Improved Scope"))
}
// # endregion
Cheat.RegisterCallback ("CreateMove", "menu_setup");
// # region draw
function draw ()
{
var local = Entity.GetLocalPlayer ();
if (! Entity.IsAlive (local) ||! World.GetServerString ()) {
Convar.SetFloat ("r_drawvgui", 1);
Convar.SetInt ("fov_cs_debug", 0);
return;
}
local = Entity.GetLocalPlayer ();
thirdperson = UI.GetValue ("Visual", "WORLD", "View", "Thirdperson");
offset = UI.GetValue ("Script items", "Scope lines offset");
leng = UI.GetValue ("Script items", "Scope lines width");
accent1 = UI.GetColor ("Script items", "Scope color gradient 1");
leng = UI.GetValue ("Script items", "Scope lines High");
hand = UI.GetString ("Script items", "Scope Hand Disstance");
accent2 = accent1
scoped = Entity.GetProp (local, "CCSPlayer", "m_bIsScoped");
screen_size = Render.GetScreenSize ();
if (! UI.GetValue ("Script items", "Improved Scope"))
return;
if (scoped) {
if (! UI.IsHotkeyActive ("Visual", "WORLD", "View", "Thirdperson")) {
if (UI.GetValue ("Script items", "Show Viewmodel")) {
Convar.SetFloat ("r_drawvgui", 0);
Cheat.ExecuteCommand ("fov_cs_debug 90");
UI.SetValue ("Visual", "WORLD", "View", "FOV while scoped", 0);
}
}
if (UI.GetValue ("Script items", "Custom Scope Hand Disstance")) {
UI.SetValue ("Misc", "SKINS", "Viewmodel", "FOV", hand);
}
if (UI.GetValue ("Script items", "Custom Scope")) {
UI.SetValue ("Visual", "WORLD", "Entities", "Removals", 59);
Render.GradientRect (screen_size [0] / 2 + offset, screen_size [1] / 2, leng, 1, 1, [accent1 [0], accent1 [1], accent1 [2], accent1 [3]], [accent2 [0], accent2 [1], accent2 [2], accent2 [3]]);
Render.GradientRect (screen_size [0] / 2 - leng - offset, screen_size [1] / 2, leng, 1, 1, [accent2 [0], accent2 [1], accent2 [2], accent2 [3]], [accent1 [0], accent1 [1], accent1 [2], accent1 [3]]);
Render.GradientRect (screen_size [0] / 2, screen_size [1] / 2 + offset, 1, leng, 0, [accent1 [0], accent1 [1], accent1 [2], accent1 [3]], [accent2 [0], accent2 [1], accent2 [2], accent2 [3]]);
Render.GradientRect (screen_size [0] / 2, screen_size [1] / 2 - leng - offset, 1, leng, 0, [accent2 [0], accent2 [1], accent2 [2], accent2 [3]], [accent1 [0], accent1 [1], accent1 [2], accent1 [3]]);
}
} else {
Convar.SetFloat ("r_drawvgui", 1);
Convar.SetInt ("fov_cs_debug", 0);
UI.SetValue ("Misc", "SKINS", "Viewmodel", "FOV", og);
UI.SetValue ("Visual", "WORLD", "Entities", "Removals", 63);
}
}
function unload () {
Cheat.ExecuteCommand ("fov_cs_debug 0");
}
Cheat.RegisterCallback ("Unload", "unload")
Cheat.RegisterCallback ("Draw", "draw");