-
Автор темы
- #1
Помогите пожалуйста, прошу я незнаю как пофиксить..
Спросите что, не так ? код вроде верный всё ок...
Но при добавление Forward direction, Legit Anti-Aim сломались, в плане место расположение, в плане работает но во всех вкладках появляться: Rage,Anti-Aim ( тут должно быть ), Visuals,Misc.
Заранее спасибо за помощь
UI.AddDropdown( "test", [ "Rage", "Anti-Aim", "Visuals", "Misc" ] );
var original_aa = true;
UI.AddHotkey("Legit AA Key");
function legit_aa()
{
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Legit AA Key"))
{
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", "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", 0);
UI.SetValue ("Anti-Aim", "Extra", "Pitch", 0);
}
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;
}
}
}
function onDraw(){
if (UI.GetValue("Script items", "test") == 1) {
UI.SetEnabled("Script items", "Legit AA Key", true);
} else {
UI.SetEnabled("Script items", "Legit AA Key", false);
}
}
Cheat.RegisterCallback("CreateMove", "legit_aa");
Cheat.RegisterCallback("Draw", "onDraw");
UI.AddHotkey("Forward direction");
function onDraw(){
if (UI.GetValue("Script items", "test") == 1) {
UI.SetEnabled("Script items", "Forward direction", true);
} else {
UI.SetEnabled("Script items", "Forward direction", false);
}
}
function yaw() {
if (
UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Forward direction")
) {
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 180);
}
else {
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 0);
}
}
Cheat.RegisterCallback("Draw", "yaw");
Cheat.RegisterCallback("Draw", "onDraw");
Спросите что, не так ? код вроде верный всё ок...
Но при добавление Forward direction, Legit Anti-Aim сломались, в плане место расположение, в плане работает но во всех вкладках появляться: Rage,Anti-Aim ( тут должно быть ), Visuals,Misc.
Заранее спасибо за помощь
UI.AddDropdown( "test", [ "Rage", "Anti-Aim", "Visuals", "Misc" ] );
var original_aa = true;
UI.AddHotkey("Legit AA Key");
function legit_aa()
{
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Legit AA Key"))
{
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", "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", 0);
UI.SetValue ("Anti-Aim", "Extra", "Pitch", 0);
}
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;
}
}
}
function onDraw(){
if (UI.GetValue("Script items", "test") == 1) {
UI.SetEnabled("Script items", "Legit AA Key", true);
} else {
UI.SetEnabled("Script items", "Legit AA Key", false);
}
}
Cheat.RegisterCallback("CreateMove", "legit_aa");
Cheat.RegisterCallback("Draw", "onDraw");
UI.AddHotkey("Forward direction");
function onDraw(){
if (UI.GetValue("Script items", "test") == 1) {
UI.SetEnabled("Script items", "Forward direction", true);
} else {
UI.SetEnabled("Script items", "Forward direction", false);
}
}
function yaw() {
if (
UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Forward direction")
) {
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 180);
}
else {
UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", 0);
}
}
Cheat.RegisterCallback("Draw", "yaw");
Cheat.RegisterCallback("Draw", "onDraw");