-
Автор темы
- #1
JavaScript:
var Normal = true;
var Opposite = false;
var Sway = false;
var Clock = 0;
function test()
{
Clock += 0.1
if (Clock > 1)
{
if (Normal == true)
{
UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", 0);
Normal = false;
Opposite = true;
Sway = false;
Clock = 0;
}
else if (Opposite == true)
{
UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", 1);
Normal = false;
Opposite = false;
Sway = true;
Clock = 0;
}
else if (Sway == true)
{
UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", 3);
Normal = true;
Opposite = false;
Sway = false;
Clock = 0;
}
}
}
Cheat.RegisterCallback("CreateMove", "test");
Просто если сделать вот так, то всё работает:
JavaScript:
var Clock = 0;
function test()
{
Clock += 0.1
if (Clock > 1)
{
if (UI.GetValue("Anti-Aim", "Fake angles", "LBY mode") == 1)
{
UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", 0);
Clock = 0;
}
else
{
UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", 1);
Clock = 0;
}
}
}
Cheat.RegisterCallback("CreateMove", "test");