Compiling Plugins (AMX Mod X)

From AlliedModders Wiki
Revision as of 15:05, 16 January 2006 by BAILOPAN (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This article describes how to compile AMX Mod X plugins from source code (.sma).

For all steps, you should place the .sma file addons/amxmodx/scripting.


Quick Compiling

  1. Drag the .sma file onto "compile.exe".
  2. Look in the compiled folder for the output .amxx file.

Compiling All Plugins

  1. Double click compile.exe to compile all plugins into the compiled folder.

Command Line

  1. Go to Start, Run, type "cmd", click Ok.
  2. Use cd to change to the directory, I.e.:
    cd c:\hlserver\cstrike\addons\amxmodx\scripting
  3. Use amxxsc to compile the plugin:
    amxxpc.exe myplugin.sma
  4. The output will be in the same folder.


First, change to the scripting folder in your shell with:

cd addons/amxmodx/scripting

Compile All

  1. Run the script by either:
    chmod +x


Compile single

  1. Run amxxpc, like so:
    ./amxxpc myplugin.sma
  2. The output will be in the same folder.