UI.AddCheckbox('Lobby');
UI.AddCheckbox('Give grenades');
function cm() {
if (UI.GetValue('Lobby')) {
Cheat.ExecuteCommand("sv_cheats 1");
Cheat.ExecuteCommand("bot_kick");
Cheat.ExecuteCommand("mp_do_warmup_offine 1");
Cheat.ExecuteCommand("mp_warmuptime 9999999");
Cheat.ExecuteCommand("mp_warmup_start");
Cheat.ExecuteCommand("god");
Cheat.ExecuteCommand("sv_infinite_ammo 1");
Cheat.ExecuteCommand("sv_airaccelerate 100");
UI.SetValue('Lobby', false);
}
if (UI.GetValue('Give grenades')) {
Cheat.ExecuteCommand("give weapon_molotov");
Cheat.ExecuteCommand("give weapon_hegrenade");
UI.SetValue('Give grenades', false);
}
}
Cheat.RegisterCallback('CreateMove', 'cm');