JavaScript:
UI.AddHotkey(["Config", "Scripts", "JS Keybinds"], "Ping Spike", "Ping Spike");
function pingspike() {
if (UI.GetValue(["Config", "Scripts", "JS Keybinds", "Ping Spike"])) {
UI.SetValue(["Misc.", "Helpers", "General", "Extended backtracking"], 1);
} else {
UI.SetValue(["Misc.", "Helpers", "General", "Extended backtracking"], 0);
}
}
Cheat.RegisterCallback("Draw", "pingspike");