• AMX Guide Home
  • Step 1: Installing MetaMod
  • Step 2: Installing AMX
  • Step 3: Setting up AMX
  • AMX by File:
    • amx.cfg
    • mysql.cfg
    • clcmds.ini
    • cmds.ini
    • cvars.ini
    • maps.ini
    • modules.ini
    • plugins.ini
    • speech.ini
    • configs.ini
    • users.ini
  • AMX by Topic:
    Admins:
    • Creating
  • Commands:
    • Cmds Guide
  • Plugins:
    • Installing
    • Compiling
  • Modules:
    • Installing
  • Menus:
    • All Menus
  • Languages:
    • Config
    • Add
  • Popular:
    • Weapons
    • Stats Setup
  • Credit
AMX Mod Setup Guide
Half-Life server administration by OLO

modules.ini - Adding more modules

The modules.ini file in your addons\amx\config folder contains what modules run in your server. Some plugins require more from AMX than it is capable of in it default state. So its core functionality is expanded by adding more modules, which allow plugin authors to do more as well.

Note that as of v0.9.9, AMX doesn't need you anymore to specify your modules path: it will look for them in addons\amx\modules.

This is what the default modules.ini looks like:

; AMX Modules

; NOTE: 'AMX+MM' modules have to be declared in both
;         amx/modules.ini and metamod/plugins.ini since
;         AMX v0.9.9 (same as 0.9.3, differs from 0.9.7)
;       Simple way to identify them: their filename
;         contains '_mm'.

; CS Stats
; This one must also be declared in MetaMod's plugins.ini!
csstats_mm.dll
csstats_mm_i586.so

; Fun: more functions for modifications in HL
; This one must also be declared in MetaMod's plugins.ini!
fun_mm.dll
fun_mm_i586.so

; MySQL access
; mysql.dll
; mysql_i586.so


; 3rd party modules

; Vexd Util.
; This one must also be declared in MetaMod's plugins.ini!
; VexdUM_mm.dll
; VexdUM_mm_i586.so

; For DoD compatibility, see this:
; http://djeyl.net/forum/index.php?showtopic=22018

(Note that a semi-colon ; was inserted at the beginning of the original lines. This prevents them from being used without deleting the original lines.)

Modules can be found at these two locations on the AMX site:

  • AMX Mod modules
  • AMX mod modules forum

(Note that some modules require an entry in the metamod\plugins.ini. Those whose names contain '_mm' do need to be declared to MetaMod, others like MySQL, MThread or GeoIP do not.)

Once your modules are declared, start up your server and type meta list. This lists MetaMod's plugins. You should get something like this:

Currently loaded plugins:
      description     stat pend  file              vers      src  load unlod
 [ 1] AMX             RUN   -    amx_mm_i586.so    v0.9.9    ini  ANY   ANY
 [ 2] CSStats         RUN   -    csstats_mm_i586.  v0.9.9    ini  ANY   ANY
 [ 3] Fun             RUN   -    fun_mm_i586.so    v0.9.9    ini  ANY   ANY
 [ 4] VexdUM          RUN   -    VexdUM_mm_i586.s  v0.9.9    ini  ANY   ANY
4 plugins, 4 running

You can also type amx modules to list the modules AMX has loaded. It should look like this:

Currently loaded modules:
      name                    type    version  author               status
 [ 1] VexdUM                  amx&mm  0.9.9    AMX Dev Team         running
 [ 2] MySQL access            amx     0.9.1    dJeyL                running
 [ 3] Fun                     amx&mm  0.9.9    OLO                  running
 [ 4] CSStats                 amx&mm  0.9.9    OLO                  running
4 modules, 4 correct

Note the 'type' column: modules that contain 'amx&mm' have to be declared in MetaMod's plugins.ini. Others (MySQL in this example) don't.

Tip:

Module downloads may include files with the .inc extension. It's important that these files get in to the addons\amx\examples\include folder. As you compile plugins that use these modules, the .inc file(s) that came with the modules are required for the plugins that use them to compile.

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