// ---------------------------------------------------------------------------
// ClanMod 1.82b1 Config Pack v1.82b1 [18 February, 2004]
// ---------------------------------------------------------------------------
// This file is part of ClanMod (See README for more information).
// Copyright 2002 - 2004 UnitedAdmins (www.unitedadmins.com)
// Project originally created by OLO (http://olo.counter-strike.pl)
// ---------------------------------------------------------------------------
// Please read the manual carefully before altering this file!
// The Manual is located at docs.unitedadmins.com
// ---------------------------------------------------------------------------

cm_cfgmodversion "1.82b1 cstrike"
cm_log "[CLANMOD] Loaded the Counter-Strike MOD Specific Configs, version: &cm_cfgmodversion&"

// ---------------------------------------------------------------------------
// Aliases for server commands and cvars.
// cm_alias "alias" "server command" "admin level & alias flags"
// ---------------------------------------------------------------------------
// Console Based Aliases (commands)
// ---------------------------------------------------------------------------

cm_alias "cm_rr" "sv_restartround 1" S
cm_alias "cm_rm" "cm_restrictmenu" S
cm_alias "/vote_restrictshield" "cm_vote 'Restrict Riot Shield?' 'Yes' 'cm_restrictshield' 'No' ''" S
// -----------------Buy Restirction Workaround for Retail Names---------------
cm_alias "9x19mm" "glock" al
cm_alias "km45" "usp" al
cm_alias "228compact" "p228" al
cm_alias "nighthawk" "deagle" al
cm_alias "fiveseven" "fn57" al
cm_alias "12gauge" "m3" al
cm_alias "autoshotgun" "xm1014" al
cm_alias "mp" "tmp" al
cm_alias "smg" "mp5" al
cm_alias "c90" "p90" al
cm_alias "defender" "galil" al
cm_alias "cv47" "ak47" al
cm_alias "krieg552" "sg552" al
cm_alias "magnum" "awp" al
cm_alias "d3au1" "g3sg1" al
cm_alias "clarion" "famas" al
cm_alias "vm4a1" "m4a1" al
cm_alias "bullpup" "aug" al
cm_alias "krieg550" "sg550" al

// --------------------------------------------------------------------------
// Cvars for ClanMod Settings Menu
// cm_cvar "name" "step" "max. value" "admin level & flags"
// --------------------------------------------------------------------------

cm_cvar cm_autoban "0.0" "5.00" "1.15" "2.30" "3.10" "4.10" Oc
cm_cvar cm_autoban_period "0" "30" "60" "120" Oc
cm_cvar cm_lockt "1" "2" "0" Sc
cm_cvar cm_lockct "1" "2" "0" Sc
cm_cvar cm_maxt "0" "2" "5" "6" "10" Sc
cm_cvar cm_maxct "0" "2" "5" "6" "10" Sc
cm_cvar cm_timelimit "0" "20" "30" "45" "60" Sc
cm_cvar mp_c4timer "20" "30" "35" "45" Oc
cm_cvar mp_fadetoblack "1" "0" Oc
cm_cvar mp_flashlight "1" "1" O
cm_cvar mp_footsteps "1" "1" O
cm_cvar mp_forcechasecam "2" "1" "0" Oc
cm_cvar mp_freezetime "0" "5" "10" Oc
cm_cvar mp_friendlyfire "1" "1" O
cm_cvar mp_hostagepenalty "0" "2" "4" "6" "8" Oc
cm_cvar mp_roundtime "5" "7" "10" Oc
cm_cvar mp_tkpunish "0" "1" Sc
cm_cvar mp_startmoney "800" "5000" "16000" "1" "0" Oc
cm_cvar sv_gravity "0" "200" "400" "600" "800" ""1"" Oc
cm_cvar sv_restartround "0" "" "1" "" "5" "" Sc

// ---------------------------------------------------------------------------
// Maps you want in the Admin Vote Menu
// Example: cm_map <mapname> <flags> <description>
// ---------------------------------------------------------------------------

cm_map as_oilrig    MV "OilRig - Assassination"
cm_map as_tundra    MV "Tundra - Assassination"
cm_map de_aztec     MV "Aztec - Bomb/Defuse"
cm_map de_cbble     MV "Cobble - Bomb/Defuse"
cm_map de_chateau   MV "Chateau - Bomb/Defuse"
cm_map de_dust      MV "Dust - Bomb/Defuse"
cm_map de_dust2     MV "Dust II - Bomb/Defuse"
cm_map de_inferno   MV "Inferno - Bomb/Defuse"
cm_map de_nuke      MV "Nuke - Bomb/Defuse"
cm_map de_prodigy   MV "Prodigy - Bomb/Defuse"
cm_map de_storm     MV "Storm - Bomb/Defuse"
cm_map de_survivor  MV "Survivor - Bomb/Defuse"
cm_map de_train     MV "Trainyard - Bomb/Defuse"
cm_map de_torn      MV "Torn - Bomb/Defuse"
cm_map de_vegas     MV "Vegas - Bomb/Defuse"
cm_map de_vertigo   MV "Vertigo - Bomb/Defuse"
cm_map cs_747       MV "747 Hijack - Hostage Rescue"
cm_map cs_assault   MV "Assault - Hostage Rescue"
cm_map cs_backalley MV "Alleyway - Hostage Rescue"
cm_map cs_estate    MV "Zaphod's Estate - Hostage Rescue"
cm_map cs_havana    MV "Havana - Hostage Rescue"
cm_map cs_italy     MV "Italy - Hostage Rescue"
cm_map cs_militia   MV "Militia - Hostage Rescue"
cm_map cs_office    MV "The Office Complex - Hostage Rescue"
cm_map cs_siege     MV "Canyon Siege - Hostage Rescue"


// ---------------------------------------------------------------------------
// Commands for Custom Command Menu's
// ---------------------------------------------------------------------------

cm_cmd "List Players" "cm_listplayer" JSbm
cm_cmd "List Admins" "cm_listadmin" Obm
cm_cmd "List Tasks" "cm_listtask" Obm
cm_cmd "Show help" "cm_help" JSbl
cm_cmd "Show rules" "cm_rules" JSbl
cm_cmd "    " " " Sbm
cm_cmd "separator1" "separator1" Sbhs
cm_cmd "Show timeleft" "cm_timeleftcmd" JSbl
cm_cmd "Show nextmap" "cm_nextmapcmd" JSbl
cm_cmd "Forgive TK" "cm_forgivetkcmd" JSbl
cm_cmd "Vote for map" "cm_votemapcmd" JSbl
cm_cmd "Show current time" "cm_thetimecmd" JSbl
cm_cmd "Vote for FF" "cm_vote 'Set FF on?' 'Yes, FF on' 'mp_friendlyfire 1' 'No, FF off' 'mp_friendlyfire 0'" Sds
cm_cmd "      " " " Sds

// ---------------------------------------------------------------------------
// Commands for speech see docs/speech.txt for list of available sounds
// ---------------------------------------------------------------------------

cm_cmd "Hey! Stop that!" "spk 'barney/donthurtem'" Weo
cm_cmd "Don't ask me" "spk 'barney/dontaskme'" Weo
cm_cmd "Don't think so" "spk 'barney/dontguess'" Weo
cm_cmd "Yup" "spk 'barney/yup'" Weo
cm_cmd "Nope" "spk 'barney/nope'" Weo
cm_cmd "Maybe" "spk 'barney/maybe'" Weo
cm_cmd "Seeya" "spk 'barney/seeya'" Weo
cm_cmd "Man that sounded bad" "spk 'barney/soundsbad'" Weo
cm_cmd "Hello and die" "spk 'vox/hello and die'" Weo
cm_cmd "Move!" "spk 'hgrunt/move! _comma yessir!'" Weo
cm_cmd "You will definitely pay!" "spk 'hgrunt/c2a2_hg_chat5a'" Weo
cm_cmd "Laughter" "spk 'hgrunt/c2a3_hg_laugh'" Weo
cm_cmd "Silence!" "spk 'hgrunt/silence!'" Weo
cm_cmd "You talk too much" "spk 'barney/youtalkmuch'" Weo
cm_cmd "You thinkin?" "spk 'barney/thinking'" Weo
cm_cmd "Open fire Gordon!" "spk 'barney/openfire'" Weo
cm_cmd "Couldnt make a bigger mess" "spk 'barney/bigmess'" Weo
cm_cmd "I have a Bad feeling" "spk 'barney/badfeeling'" Weo
cm_cmd "Yes sir!" "spk 'hgrunt/yessir!'" Weo
cm_cmd "No sir" "spk 'barney/nosir'" Weo

// ---------------------------------------------------------------------------
// Client Commands for Custom Command Menu's
// ---------------------------------------------------------------------------

cm_cmd "Show 'em the Rules!" "cm_rules;developer 1;echo '** READ THE RULES &name& **';developer 0;say 'Dont Shoot! I'm busy reading the server rules'" Efl
cm_cmd "Bury Player" "cm_bury &steamid& ESf
cm_cmd "Un-Bury Player" "cm_unbury &steamid&" ESf
cm_cmd "Gag Player" "cm_gag &steamid&" ESf
cm_cmd "Un-Gag Player" "cm_ungag &steamid&" ESf
cm_cmd "Mute VoiceComm" "voice_enable 0;developer 1;echo '** You have been muted for abusing VoiceComm **';developer 0;say 'I have been muted for abusing VoiceComm';spk 'hgrunt/silence!'" Efl
cm_cmd "UnMute VoiceComm" "voice_enable 1;developer 1;echo '** You have been unmuted (restart HL to regain VoiceComm) **';developer 0;say 'I have been unmuted'" Efl
cm_cmd "Slay Player" "cm_slay '&name&';cm_clexec '&name&' 'spk hgrunt/c2a2_hg_chat5a'" Ef 
cm_cmd "Slay (Lightning)" "cm_slay '&name&' l;cm_clexec '&name&' 'spk hgrunt/c2a2_hg_chat5a'" Ef 
cm_cmd "Slay (Explosion)" "cm_slay '&name&' e;cm_clexec '&name&' 'spk hgrunt/c2a2_hg_chat5a'" Ef
cm_cmd "Drop Weapon!" "cm_clexec '&name&' drop" Ef
cm_cmd "Name Me Change Name" "cm_clexec '&name&' 'name Change_Name'" ESf
cm_cmd "Name Me Llama" "cm_clexec '&steamid&' 'name I_am_a_Llama'" ESf
cm_cmd "Name Me Camper" "cm_clexec '&steamid&' 'name I_am_a_Camper'" ESf
cm_cmd "SlayTeam 1 (Lightning)" "cm_slay 1 tl" Ods 
cm_cmd "SlayTeam 1 (Explosion)" "cm_slay 1 te" Ods 
cm_cmd "SlayTeam 2 (Lightning)" "cm_slay 2 tl" Ods 
cm_cmd "SlayTeam 2 (Explosion)" "cm_slay 2 te" Ods 
cm_cmd "SlayAll (Lightning)" "cm_slay * l" Ods 
cm_cmd "SlayAll (Explosion)" "cm_slay * e" Ods

// ---------------------------------------------------------------------------
// Server Configuration Variables (CVARs)
// ---------------------------------------------------------------------------

cm_cvar sv_password "password" "" "password2" "" "password3" "" Sc
cm_cvar mp_timelimit "0" "25" "30" "35" "40" "45" Sc
cm_cvar cm_info "www.unitedadmins.com" "Match in progress" "Locked! Please Come Back Later" Sc
cm_cvar cm_record "1" "2" S
cm_cvar cm_clientcmd "1" "1" O
cm_cvar cm_enableslap "1" "1" S
cm_cvar cm_teleport "1" "1" O
cm_cvar cm_loadconfig "1" "2" O
cm_cvar sv_allowupload "1" "1" O
cm_cvar mp_consistency "1" "1" S
cm_cvar pausable "1" "1" O
cm_cvar sv_alltalk "1" "1" S
cm_cvar allow_spectators "1" "1" O

// ---------------------------------------------------------------------------
// Commands for Custom Command Menu's
// ---------------------------------------------------------------------------

cm_command "cm_restrictshield "cm_buyrestrict 'shield'"
cm_command "cm_unrestrictshield "cm_buyunrestrict 'shield'"

// ---------------------------Clan Match Menu---------------------------------

cm_cmd "Pause" "cm_pause" Sas
cm_cmd "Restart Round" "sv_restartround 1" Sas
cm_cmd "Live On 3 for Match" "cm_exec configs/matches/cm_lo3.cfg" Sas
cm_cmd "Triple Restart Round for Match" "cm_war_system_lo3" Sas
cm_cmd "Repeat Map" "cm_nextmap &cm_currentmap&" Sas
cm_cmd "      " " " Sas

// --------------------------Configuration Menu-------------------------------

cm_cmd "Standard Server Settings" "run_public" Scsx

// ----------------------------Miscellaneous Menu-----------------------------

cm_cmd "Restrict AWP/AWM" "cm_buyrestrict 'awp';cm_say @@g AWP's Have Been Restricted" Sds
cm_cmd "Un-Restrict AWP/AWM" "cm_buyunrestrict 'awp';cm_say @@g AWP's Have Been Un-Restricted" Sds
cm_cmd "Secondary Weapons ONLY" "cm_buyrestrict 'm3';cm_buyrestrict 'xm1014';cm_buyrestrict 'mac10';cm_buyrestrict 'tmp';cm_buyrestrict 'mp5';cm_buyrestrict 'ump45';cm_buyrestrict 'p90';cm_buyrestrict 'galil';cm_buyrestrict 'ak47';cm_buyrestrict 'scout';cm_buyrestrict 'sg552';cm_buyrestrict 'awp';cm_buyrestrict 'g3sg1';cm_buyrestrict 'famas';cm_buyrestrict 'm4a1';cm_buyrestrict 'aug';cm_buyrestrict 'sg550';cm_buyrestrict 'm249';cm_restrictmenu 'w2:w3:w4:w5';cm_say @@g Secondary Weapons ONLY" Sds
cm_cmd "Shotguns ONLY" "cm_buyrestrict 'glock';cm_buyrestrict 'usp';cm_buyrestrict 'p228';cm_buyrestrict 'deagle';cm_buyrestrict 'elites';cm_buyrestrict 'fn57';cm_buyrestrict 'mac10 ';cm_buyrestrict 'tmp ';cm_buyrestrict 'mp5';cm_buyrestrict 'ump45';cm_buyrestrict 'p90';cm_buyrestrict 'galil';cm_buyrestrict 'ak47';cm_buyrestrict 'scout';cm_buyrestrict 'sg552';cm_buyrestrict 'awp';cm_buyrestrict 'g3sg1';cm_buyrestrict 'famas';cm_buyrestrict 'm4a1';cm_buyrestrict 'aug';cm_buyrestrict 'sg550';cm_buyrestrict 'm249''" Sds
cm_cmd "Sniper-Rifles ONLY" "cm_buyrestrict 'glock';cm_buyrestrict 'usp';cm_buyrestrict 'p228';cm_buyrestrict 'deagle';cm_buyrestrict 'elites';cm_buyrestrict 'fn57';cm_buyrestrict 'mac10 ';cm_buyrestrict 'tmp ';cm_buyrestrict 'mp5';cm_buyrestrict 'ump45';cm_buyrestrict 'p90';cm_buyrestrict 'galil';cm_buyrestrict 'ak47';cm_buyrestrict 'famas';cm_buyrestrict 'm4a1';cm_buyrestrict 'aug';cm_buyrestrict 'sg550';cm_buyrestrict 'm3';cm_buyrestrict 'xm1014';cm_buyrestrict 'm249';cm_restrictmenu 'w2:w3:w41:w42:w43:w44:w5'" Sds
cm_cmd "Knife Arena is off" "cm_buyrestrict '*';mp_startmoney 0;cm_restrictmenu 'e:p:s:w';cm_say @@g Knives ONLY please;sv_restartround 1;cm_task 2 'cm_clexec * drop' spnuj" Sdsn
cm_cmd "Knife Arena is on" "cm_buyunrestrict '*';mp_startmoney 800;cm_restrictmenu '';cm_say @@g Knife arena is off;sv_restartround 1;cm_remove task ?j" Sdsnh
cm_cmd "Remove Restrictions" "cm_buyunrestrict '*';cm_restrictmenu '';cm_say @@g All Restrictions Have Been Removed..." Sds
cm_cmd "Vote to restrict Shield" "cm_vote 'Restrict Riot Shield?' 'Yes' 'cm_restrictshield' 'No' ''" Sds

// ---------------------------------------------------------------------------
// Client Commands for Custom Command Menu's
// ---------------------------------------------------------------------------

cm_cmd "CT team" "chooseteam;wait;wait;wait;wait;wait;wait;wait;menuselect 2" Efl
cm_cmd "T team" "chooseteam;wait;wait;wait;wait;wait;wait;wait;menuselect 1" Efl
cm_cmd "Spectator" "chooseteam;wait;wait;wait;wait;wait;wait;wait;menuselect 6" Efl
cm_cmd "Drop Weapon" "drop" Efl

// ---------------------------------------------------------------------------
// Additional Commands
// ---------------------------------------------------------------------------

cm_task 1 "cm_say @@@@ The nextmap will be &cm_nextmap&" bfuos "Shows the nextmap before a map change"
cm_mapcfgsdir "addons/clanmod/configs/mods/cstrike/maps/"

// ------HTML MOTD Window Help Files (Comment out for pre-Steam servers)------
cm_adminhelpfile "addons/clanmod/help/adminhelp_html.txt"
cm_playerhelpfile  "addons/clanmod/help/playerhelp_html.txt"
cm_rulesfile  "addons/clanmod/help/rules_html.txt"

// ---------------------------------------------------------------------------
// cm_locale Managment
// ---------------------------------------------------------------------------
alias "cm_locale_load_if" "cm_if cm_locale == 0 than cm_locale_error; cm_if cm_locale == all than cm_locale_all else cm_locale_load"
cm_command "cm_locale_load" "cm_exec configs/mods/&cm_mod&/cm_&cm_locale&.cfg"
cm_command "cm_locale_all" "cm_exec configs/mods/&cm_mod&/cm_eu.cfg;cm_exec configs/mods/&cm_mod&/cm_us.cfg"
alias "cm_locale_error" "cm_log No cm_locale Definition"
cm_locale_load_if