Fullserver.su CS 1.6 Community Forum
Compiling Plugins - Printable Version

+- Fullserver.su CS 1.6 Community Forum (https://fullserver.su/forum)
+-- Forum: Add-ons (Mods, Plugins) (https://fullserver.su/forum/forum-13.html)
+--- Forum: General Questions about Mods and Plugins (https://fullserver.su/forum/forum-14.html)
+--- Thread: Compiling Plugins (/thread-10.html)



Compiling Plugins - Fullserver - 06-04-2023

For Windows:

Drag and Drop Method:
  1. Drag the .sma file onto "compile.exe".
  2. The compiled .amxx file will be located in the ../compiled/ directory.

Compiling All Plugins:
  1. Double-click on compile.exe to compile all plugins and place them in the ../compiled/ directory.

Command Line Method:
  1. Go to "Start" -> "Run" -> type "cmd" and press Ok.
  2. Use cd to change the directory, for example:
    Code:
    cd c:\hlserver\cstrike\addons\amxmodx\scripting
  3. Use amxxpc to compile the plugin:
    Code:
    amxxpc.exe myplugin.sma
  4. The compiled plugin will be in the same directory.


For Linux:

First, navigate to the scripting directory in your shell:
Code:
cd addons/amxmodx/scripting


Compiling All Plugins:
  1. Run the compile.sh script using one of the following methods:
    Code:
    sh compile.sh
    or
    Code:
    chmod +x compile.sh
    ./compile.sh

Compiling a Single Plugin:
  1. Run amxxpc, for example:
    Code:
    ./amxxpc myplugin.sma
  2. The compiled plugin will be in the same directory.