• AMX Guide Home
  • Step 1: Installing AMX
  • Step 2: Enabling AMX
  • Step 3: Configuring AMX
  • AMX by File:
    • amx.cfg
    • mysql.cfg
    • clcmds.ini
    • cmds.ini
    • configs.ini
    • cvars.ini
    • maps.ini
    • modules.ini
    • paths.ini
    • plugins.ini
    • speech.ini
    • users.ini
  • AMX by Topic:
    • Creating Admins
    • Commands Guide
    • Plugin Installation
    • Plugin Compiling
    • Module Setup
    • Menu Use
    • Language Setup
    • Language Install
    • Weapon Restriction
    • Stats Setup
    • Custom Map Configs
  • Misc. Resources
  • Credit
AMX Mod 2005v1.0 Setup Guide
Half-Life server administration

Custom configs per map

AMX adds the ability to run each map with its own set of custom settings. Simply add a config file for each map or type of map in the amx\config\maps folder. The file is named after the map, but with a .cfg extension. For example, if you wanted a custom configuration for the map de_aztec, you would create de_aztec.cfg.

You can also create configs for just de_ or cs_ or any type of map. Below is an example of the contents of fy_.cfg. This config will be run on any fy_ map, such as fy_snow, fy_poolday, etc.

// Custom config for all 'fy_' maps

echo "Exec'ing default fy_.cfg"
mp_freezetime 0
mp_friendlyfire 0
echo "Default fy_.cfg exec'd"

Now let's say only on the map fy_iceworld you didn't want to allow flashbang grenades to be purchased, or the map to be extended. The above config will be run, setting the freeze time and friendly fire, then the below config will be run setting the weapon and voting restrictions as well.

// Custom config for fy_iceworld

echo "Exec'ing fy_iceworld.cfg"
amx_restrict on flash
amx_extendmap_max 0
echo "fy_iceworld.cfg exec'd"

As long as your server is set to run the server.cfgAdd mapchangecfgfile server.cfg to your server.cfg on each map change, then the default settings will be restored on each map. That is, unless you have a custom config for the next map!

Half-Life is a registered trademark of VALVe Software and Sierra
AMX Mod was created by OLO and is not affiliated with VALVe.