-
Автор темы
- #1
Вот, вообщем-то сделал жсочку на установку разминки, там чел 1 делал на кряк в4 и обычный в4, а я вот сделал по своему и некоторые функции добавил а некоторые убрал. Вообщем, полезная js
JavaScript:
UI.AddCheckbox("Load warmup settings")
UI.AddCheckbox("Godmode")
UI.AddCheckbox("Add bot to CT team")
UI.AddCheckbox("Add bot to T team")
UI.AddCheckbox("sv_lan 1")
UI.AddCheckbox("Get ssg08")
UI.AddCheckbox("Get all nades")
UI.AddCheckbox("Kick bots")
UI.AddCheckbox("Mirage")
UI.AddCheckbox("Vertigo")
UI.AddCheckbox("Cobblestone")
UI.AddCheckbox("Disconnect")
Cheat.ExecuteCommand("sv_cheats 1")
function warmup() {
if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Load warmup settings")) {
Cheat.ExecuteCommand("mp_roundtime_defuse 60")
Cheat.ExecuteCommand("mp_warmup_pausetimer 111")
Cheat.ExecuteCommand("bot_stop 1")
Cheat.ExecuteCommand("sv_infinite_ammo 1")
Cheat.ExecuteCommand("mp_freezetime 0")
Cheat.ExecuteCommand("mp_round_restart_delay 0")
Cheat.ExecuteCommand("mp_maxmoney 16000")
Cheat.ExecuteCommand("mp_startmoney 16000")
Cheat.ExecuteCommand("mp_maxrounds 999")
Cheat.ExecuteCommand("mp_buy_anywhere 1")
Cheat.ExecuteCommand("mp_buytime 9999999999999")
Cheat.ExecuteCommand("sv_airaccelerate 100")
Cheat.ExecuteCommand("mp_restartgame 1")
Cheat.ExecuteCommand("clear")
UI.SetValue("Misc", "JAVASCRIPT", "Script Items", "Load warmup settings", 0);
}
if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Godmode")) {
Cheat.ExecuteCommand("god")
UI.SetValue("Misc", "JAVASCRIPT", "Script Items", "Godmode", 0);
}
if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Get ssg08")) {
Cheat.ExecuteCommand("give weapon_ssg08")
Cheat.ExecuteCommand("give item_assaultsuit")
UI.SetValue("Misc", "JAVASCRIPT", "Script Items", "Get ssg08", 0);
}
if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Get all nades")) {
Cheat.ExecuteCommand("give weapon_molotov")
Cheat.ExecuteCommand("give weapon_hegrenade")
Cheat.ExecuteCommand("give weapon_smokegrenade")
UI.SetValue("Misc", "JAVASCRIPT", "Script Items", "Get all nades", 0);
}
if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "sv_lan 1")) {
Cheat.ExecuteCommand("sv_lan 1")
UI.SetValue("Misc", "JAVASCRIPT", "Script Items", "sv_lan 1", 0);
}
if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Disconnect")) {
Cheat.ExecuteCommand("disconnect")
UI.SetValue("Misc", "JAVASCRIPT", "Script Items", "Disconnect", 0);
}
if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Mirage")) {
Cheat.ExecuteCommand("map de_mirage")
UI.SetValue("Misc", "JAVASCRIPT", "Script Items", "Mirage", 0);
}
if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Vertigo")) {
Cheat.ExecuteCommand("map de_vertigo")
UI.SetValue("Misc", "JAVASCRIPT", "Script Items", "Vertigo", 0);
}
if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Cobblestone")) {
Cheat.ExecuteCommand("map de_cbble")
UI.SetValue("Misc", "JAVASCRIPT", "Script Items", "Cobblestone", 0);
}
if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Add bot to T team")) {
Cheat.ExecuteCommand("bot_add_t")
UI.SetValue("Misc", "JAVASCRIPT", "Script Items", "Add bot to T team", 0);
}
if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Kick bots")) {
Cheat.ExecuteCommand("bot_kick")
UI.SetValue("Misc", "JAVASCRIPT", "Script Items", "Kick bots", 0);
}
if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Add bot to CT team")) {
Cheat.ExecuteCommand("bot_add_ct")
UI.SetValue("Misc", "JAVASCRIPT", "Script Items", "Add bot to CT team", 0);
}
}
Cheat.RegisterCallback("CreateMove", "warmup");