JavaScript:
UI.AddHotkey("Minimum Hitchance")
UI.AddSliderInt("Scout hitchance",1,100)
UI.AddSliderInt("Heavy hitchance",1,100)
var heavy_cache = UI.GetValue("Rage","HEAVY PISTOL","Accuracy","Hitchance")
var scout_cache = UI.GetValue("Rage","SCOUT","Accuracy","Hitchance")
function main() {
var isActive = UI.IsHotkeyActive("Script items", "Minimum Hitchance");
var heavy_minhit = UI.GetValue("Script items", "Heavy hitchance");
var scout_minhit = UI.GetValue("Script items", "Scout hitchance");
if (IsActive == true) {
UI.SetValue("Rage", "HEAVY PISTOL", "Accuracy", "Hitchance", heavy_minhit);
UI.SetValue("Rage", "SCOUT", "Accuracy", "Hitchance", scout_minhit);
}
else {
UI.SetValue("Rage", "HEAVY PISTOL", "Accuracy", "Hitchance", heavy_cache);
UI.SetValue("Rage", "SCOUT", "Accuracy", "Hitchance", scout_cache);
}
}
Cheat.RegisterCallback("CreateMove", "main")
Почему не работает?
Последнее редактирование модератором: