Maps

Map Cycle

If you use the mapsmenu plugin, you can either use "maps.ini" or "mapcycle.txt" to manage map rotations.

Delete "maps.ini" to use mapcycle.txt, otherwise, simply add a list of map names to maps.ini like so:

; Maps configuration file

; File location: $moddir/addons/amxmodx/configs/maps.ini

; To use with Maps Menu plugin

 

; Add in your mod's maps here

; Delete this file to use mapcycle.txt

 

as_oilrig

cs_747

cs_assault

cs_backalley

cs_estate

cs_havana

cs_italy

cs_militia

cs_office

cs_siege

de_airstrip

de_aztec

de_cbble

de_chateau

de_dust

de_dust2

de_inferno

de_nuke

de_piranesi

de_prodigy

de_storm

de_survivor

de_torn

de_train

de_vertigo

·         Note: This is the default maps.ini for the CS package 1.76d

Map Config Files

For each map, you can also add a configuration file that will execute when the map loads. This is useful to set certain settings for 3rd party maps, say, removing the freeze time on fy_iceworld.

To do this, simply create a folder in amxmodx/configs called "maps" and place a .cfg file named after the map with the settings in it, for example, you might have amxmodx/configs/maps/fy_iceworld.cfg:

mp_startmoney 16000

mp_freezetime 0

mp_timelimit 20

sv_downloadurl "http://YourFastDownload1.com/cstrike"  //for different Download URL other then default

Be sure to include the following line into your server.cfg. This ensures that you go back (or fall back on) to your default server settings. It is suggested that anything you place in custom config files are also put in your server.cfg or amxx.cfg (at default settings) for best use of this feature.

mapchangecfgfile server.cfg

As of AMX Mod X 1.8.0, you are now able to create config files for map prefixes. To do this, create a file called prefix_<prefix>.cfg, where <prefix> would mean de, cs, awp, surf, ect. All prefix config files go in the same location as per map, the amxmodx/configs/map/ directory.

configs/maps/prefix_de.cfg  - Would run on any de_* map.

configs/maps/prefix_cs.cfg  - Would run on any cs_* map.

Configuration files are map prefix first (prefix_de.cfg) and map configuration second (de_dust2.cfg).

For Counter-Strike, you can restrict certain weapons using these config files. It requires the restmenu.amxx plugin to be enabled on your server (usually is by default). You can find more information on how to do this here.

http://forums.alliedmods.net/showthread.php?t=6516

Map Specific Plugins

Each map can have a specific plugins.ini file for which it will load on map change. This plugins file will be loaded in addition to the standard plugins.ini file.

The file is to be located at amxmodx/configs/maps/plugins-mapname.ini For example, for de_dust you would create the fileamxmodx/configs/maps/plugins-de_dust.ini

In addition, a plugin can be tagged as "disabled" which will prevent this plugin from being loaded. You accomplish this the same way you tag a plugin as debug mode, by entering the word disabled after the plugin name in the file, which will prevent it from being loaded for that map.

For example, if you wanted the map de_dust to disable the plugin ham.amxx and enable the plugin pickle.amxx you would put this inamxmodx/configs/maps/plugins-de_dust.ini:

ham.amxx disabled

pickle.amxx

Note: This feature was added in AMX Mod X 1.76

As of AMX Mod X 1.8.0, you are now able to create plugin.ini files for map prefixes. To do this, create a file called plugins-<prefix>.ini, where <prefix> would mean de, cs, awp, surf, ect. All prefix config files go in the same location as per map, the amxmodx/configs/map/ directory.

configs/maps/plugins-de.ini - Would enable/disable any plugins for all de_* maps.

Plugin based configuration files are loaded by map first (plugins-de_nuke.ini) and prefix second (plugins-de.ini).