Installation
---------------------------------------------------------------------
1. Download MetaMod from http://www.metamod.org and install it 
   following its instructions.

   Just to make sure, after installation, you should get:
     $moddir/addons/metamod/dlls/metamod.dll
     $moddir/addons/metamod/dlls/metamod_i386.so
     $moddir/addons/metamod/plugins.ini

   In $moddir/liblist.gam file instead of:
     gamedll "dlls\mp.dll"
     gamedll_linux "dlls/cs_i386.so"

   You should have:
     gamedll "addons\metamod\dlls\metamod.dll"
     gamedll_linux "addons/metamod/dlls/metamod_i386.so"

2. Unzip this file to $moddir (f.e.: $moddir is "cstrike"
   if you run Counter-Strike) with directory structure.
   You should get:
     $moddir/addons/amx/dlls/amx_mm.dll
     $moddir/addons/amx/dlls/amx_mm_i386.so
     $moddir/addons/amx/dlls/fun_ms.dll
     $moddir/addons/amx/dlls/fun_ms_i386.so
     $moddir/addons/amx/dlls/csstats_ms.dll
     $moddir/addons/amx/dlls/csstats_ms_i386.so
     $moddir/addons/amx/dlls/logd_ms.dll
     $moddir/addons/amx/dlls/logd_ms_i386.so
     $moddir/addons/amx/dlls/mysql_ms.dll
     $moddir/addons/amx/dlls/mysql_ms_i386.so
     $moddir/addons/amx/dlls/udp_ms.dll
     $moddir/addons/amx/dlls/udp_ms_i386.so
     $moddir/addons/amx/examples/*.sma
     $moddir/addons/amx/examples/include/*.inc
     $moddir/addons/amx/logs/...
     $moddir/addons/amx/plugins/plugins.ini
     $moddir/addons/amx/plugins/*.amx
     $moddir/addons/amx/modules.ini
     $moddir/addons/amx/...

3. Open $moddir/addons/metamod/plugins.ini and add there
   (line with ; char is a comment):
     ; AMX Mod
     win32 addons\amx\dlls\amx_mm.dll
     linux addons/amx/dlls/amx_mm_i386.so
     ; More script functions for AMX Mod
     win32 addons\amx\dlls\fun_ms.dll
     linux addons/amx/dlls/fun_ms_i386.so
     ; Stats for Counter-Strike
     win32 addons\amx\dlls\csstats_ms.dll
     linux addons/amx/dlls/csstats_ms_i386.so

4. Open $moddir/addons/amx/modules.ini and add
   there lines (if not already exist there):
     ; More script functions for AMX Mod
     addons/amx/dlls/fun_ms.dll
     addons/amx/dlls/fun_ms_i386.so
     ; Counter-Strike Statistics (only if you use stats)
     addons/amx/dlls/csstats_ms.dll
     addons/amx/dlls/csstats_ms_i386.so
     ; AMX LogD (only if you run plugins to use with that)
     addons/amx/dlls/logd_ms.dll
     addons/amx/dlls/logd_ms_i386.so
     ; MySQL access (only if you run plugins to use with that)
     addons/amx/dlls/mysql_ms.dll
     addons/amx/dlls/mysql_ms_i386.so
     ; Rcon and Query (only if you run plugins to use with that)
     addons/amx/dlls/udp_ms.dll
     addons/amx/dlls/udp_ms_i386.so

5. Make sure you have plugins.ini and AMX scripts files
   under $moddir/addons/amx/plugins path.

   You can also override plugins list filename by setting
   amx_plugins localinfo as a HLDS parameter.
   (f.e. +localinfo amx_plugins plugins.ini)

NOTES:
   . You can remove CS Stats from modules.ini unless you run
     Counter-Strike with AMX Statistic Plugins.
   . MetaMod can use $moddir/addons/metamod/plugins.ini or
     $moddir/metamod.ini file to specify its plugins. If you
     don't have any then create one.

AMX Commands
---------------------------------------------------------------------
To see the list of all available commands for AMX Mod,
type "amx" in the server console. With these commands
you can check version of AMX, list all cvars
and server commands registered by plugins; pause,
unpause plugins; display status and additional info about
plugins and modules.

If none of them works or you get an error message then
you haven't installed AMX properly.


Writing Plugins for AMX Mod
---------------------------------------------------------------------
For Small basics read: http://www.compuphase.com/smalldoc.pdf

To learn about AMX Mod script functions (natives) go to
$moddir/addons/amx/examples/include path and read
contents of all inc files. A good idea is reading
code of scriptis published on AMX web site:
http://amxmod.net/amx-plugins.php

Scripting in AMX Mod is the same as it is in AdminMod.
However plugins from first won't run under second and vice versa.


Compiling plugins
---------------------------------------------------------------------
Enter to $moddir/addons/amx/examples where you have sc.exe
for win32 and sc for linux.

To compile your sma file, put it into $moddir/addons/amx/examples
directory and run proper compiler passing the name of your
script filename as an argument (for win32 you may run sc.bat to
get compiled all sma files in $moddir/addons/amx/examples/compiled
directory).

Plugins compiled on win32 work on linux and vice versa.
