ClanMod Documentation :
Installation

Note: In these installation instructions, we refer to the root of your game directory structure as <mod_dir>. For example, if you have a Windows dedicated server with a default installation and you are using Counter-Strike, then <mod_dir> would be C:\HLServer\cstrike\. If you are using Linux and TFC, then <mod_dir> would be /home/hlds_l/tfc. Please verify the location of your Half-Life server before beginning this installation process. Old users note: Metamod and clanmod have changed directory, all files have been moved due to the new addon folder structure, please make note of this and read all paths carefully.

Installing Metamod

If you already have Metamod installed on your server then you can skip this step and move on to step two. Since Metamod is also required for AdminMod, HLGuard, StatsMe, Cheating-Death and many other Half-Life mods, many servers already have it installed.
If you need to download Metamod you can get it at one of the following:
You do not need the complete package. All you need is metamod.dll for Windows servers or metamod_i386.so for Linux servers. Download this file and save it in the <mod_dir>/addons/metamod/dlls/ directory.
Next, you need to update your liblist.gam file so that metamod is loaded. liblist.gam exists in <mod_dir>. Follow these instructions depending on whether you are running a Windows or Linux server.
For Windows servers:
For Linux servers:

Installing ClanMod Files

For Windows servers:
For Linux Servers:

Finalizing the Install

ClanMod is now installed and ready to run. To start ClanMod, stop and restart your hlds server. The ClanMod plugin should automatically load. You can also load and unload the plugin on every map change using the appropriate Metamod commands. (Type "meta help" in server console for more help) To ensure that the plugin is running, type "clanmod_version" in your hlds console.
To configure and customize ClanMod, edit the various configuration files found in <mod_dir>/addons/clanmod. The first thing you need to do is define your admins. To do this, edit the file <mod_dir>/addons/clanmod/cm_admins.cfg. There are many examples of how to do this included in the file. For complete details on how to define admins, see the ClanMod Manual section titled "Creating Admins". Once you have defined your admins, you will want to make use of ClanMod when you are in-game. For instructions on how to do this, see the sections "Logging In" and "On-Screen Menus" in both the ClanMod Manual and the ClanMod Adminstrator's Guide.

The Config Files

For your reference, the various files and directories in <mod_dir>/addons/clanmod/ are described below:
Main configuration files found in <mod_dir>/addons/clanmod/:
Other files and directories found in <mod_dir>/addons/clanmod/:

NOTE: If you get the error message "Z_Malloc: failed on allocation of xxxx bytes" when loading a new map, you will have to either make smaller configs (remove comments - lines with "//" at the beginning) or run the server with the command line parameter -zone 4096.