// ---------------------------------------------------------------------------
// 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
// ---------------------------------------------------------------------------

// ---------------------------------------------------------------------------
// Clears out all commands in ClanMod for a fresh start each time config loads
// ---------------------------------------------------------------------------

cm_remove * *

// ---------------------------------------------------------------------------
// Writes into HLDS Logs, Sets Config File Version, and Defines Menu Layout
// ---------------------------------------------------------------------------

cm_log "[CLANMOD] Executing ClanMod configuration file (&cm_configpath&/clanmod.cfg)"
clanmod_cfgversion "v1.82.B1"

// ---------------------------------------------------------------------------
// Separate Config Files to Execute
// ---------------------------------------------------------------------------

cm_exec configs/cm_titles.cfg		// Load language specific messages into memory
cm_exec configs/cm_admins.cfg    	// Setup Administrators and Privileges
cm_exec configs/cm_badwords.cfg		// Setup censored/restricted words and replacements
cm_exec configs/cm_aliases.cfg		// Setup aliases to ease ClanMod command usage
cm_exec configs/cm_tksystem.cfg		// Setup the TK System
cm_exec configs/cm_settings.cfg		// Setup the the most common ClanMod CVARs
cm_exec configs/cm_motd.cfg		// Setup for automated server messages
cm_exec configs/cm_warmenu.cfg  	// Setup the War Menu League System
cm_exec configs/cm_scripts.cfg		// Load Addon Scripts

// ---------------------------------------------------------------------------
// MySQL Configuration
// ---------------------------------------------------------------------------

// cm_mysql - default is 0.  If you are using the MySQL binary, change this
//            setting to 1. If you do not already have the cm_users table created,
//            run the "clanmod.sql" script in the "docs" folder on your MySQL Database.
// 
// 0 - MySQL is disabled, or connection failed
// 1 - MySQL is enabled, will get users from database

cm_mysql 0 
cm_if cm_mysql > 0 then cm_exec configs/cm_mysql.cfg else cm_exec configs/cm_admins.cfg

// ---------------------------------------------------------------------------
// Checks cvars so it can load the correct configs
// ---------------------------------------------------------------------------

cm_command cm_load_modcfg "cm_exec configs/mods/&cm_mod&/cm_menu.cfg"

cm_load_modcfg
