lyric
-
Автор темы
- #1
Как пользоваться этими функциями (п.с код ниже)
Кто сможет, объясните пж, или сделайте чтобы при выборе 4 раздела появлялась функция.
JavaScript:
UI.AddLabel(" Anti-Aim Selection");
UI.AddDropdown( "Test", [ "one", "two", "three", "four" ] );
UI.AddCheckbox("Anti-Aim");
UI.AddHotkey("Legit AA");
function legit_aa()
{
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Legit AA"))
{
if (original_aa)
{
restrictions_cache = UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions");
hiderealangle_cache = UI.GetValue ("Anti-Aim", "Fake angles", "Hide real angle");
yaw_offset_cache = UI.GetValue ("Anti-Aim", "Rage Anti-Aim", "Yaw offset");
jitter_offset_cache = UI.GetValue ("Anti-Aim", "Rage Anti-Aim", "Jitter offset");
pitch_cache = UI.GetValue ("Anti-Aim", "Extra", "Pitch");
original_aa = false;
}
UI.SetValue ("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", 0);
UI.SetValue ("Anti-Aim", "Extra", "Pitch", 0); // 0 değeri idi
UI.SetValue ("Anti-Aim", "Fake angles", "Hide real angle", true);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 180);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Jitter offset", 7);
}
else
{
if (!original_aa)
{
UI.SetValue ("Misc", "PERFORMANCE & INFORMATION", "Information", "Restrictions", restrictions_cache);
UI.SetValue ("Anti-Aim", "Fake angles", "Hide real angle", hiderealangle_cache);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Yaw offset", yaw_offset_cache);
UI.SetValue ("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter_offset_cache);
UI.SetValue ("Anti-Aim", "Extra", "Pitch", pitch_cache);
original_aa = true;
}
}
}
Cheat.RegisterCallback("CreateMove", "legit_aa");
function menu_la()
{
var enabled = UI.GetValue( "Misc", "JAVASCRIPT", "Script items", "Anti-Aim");
UI.SetEnabled( "Legit AA", enabled);
}
function menu_lacheck() {
if (UI.IsMenuOpen()) {
menu_la();
}
}
Global.RegisterCallback("Draw", "menu_lacheck")