AMX Mod X CS 1.6

How to install AMX Mod X on a ReHLDS server

Install Metamod-r and AMX Mod X 1.10 on a CS 1.6 ReHLDS server, make yourself admin and add your first plugin, on Windows or Linux.

5 min read Last checked 1h ago 3 views

Want admin commands, map voting and thousands of plugins on your Counter-Strike 1.6 server? You need AMX Mod X. It runs on top of Metamod-r, and both work best on ReHLDS. This guide takes you from a clean server to a working admin menu in about 15 minutes, on Windows or Linux.

Press ~ in the game to open the console whenever you test something. New to servers? Start with the first guide in this series.

Live CS 1.6 serversBrowse servers with players online right now, by map, mode and country.Browse servers

What you need#

  • A CS 1.6 server that already starts (made with SteamCMD)
  • ReHLDS installed over the original engine
  • Access to the server files (FTP, SSH or local folder)
  • About 10 MB of free space
PartWhat it doesWhere to get it
ReHLDSFixed and faster server engineGitHub releases
Metamod-rLoads plugins like AMX Mod XGitHub releases
AMX Mod X 1.10Admins, menus and .amxx pluginsamxmodx.org
ReAPI (optional)Extra functions many plugins needGitHub releases
Which version?

Use AMX Mod X 1.10. Most new plugins are written for it, and 1.10 still runs almost every plugin made for 1.8.2.


Install everything#

  1. 1Download the files

    Get the latest Metamod-r release and, from the AMX Mod X site, two packages for your system: the Base Package and the Counter-Strike addon.

    Open the AMX Mod X downloads

    Tip

    On Linux, download straight to the server with wget instead of uploading by FTP. It is faster and keeps the file permissions.

  2. 2Copy Metamod-r

    Unpack the Metamod-r archive into your cstrike folder. When you are done, these files must exist:

    cstrike/addons/metamod/metamod.dll
    cstrike/addons/metamod/metamod_i386.so
  3. 3Tell the server to load Metamod

    Open cstrike/liblist.gam and change only the line for your system.

    liblist.gamini
    gamedll "addons\metamod\metamod.dll"
    Keep a copy

    Save the original line somewhere first. If the server stops starting, put it back and it will run without plugins again.

  4. 4Copy AMX Mod X

    Unpack both AMX Mod X archives into cstrike. They share folders, so say Yes when asked to merge. Check that this file exists:

    cstrike/addons/amxmodx/dlls/amxmodx_mm.dll
  5. 5Add AMX Mod X to Metamod

    Create the file addons/metamod/plugins.ini (or open it if it exists) and add one line:

    addons/metamod/plugins.iniini
    win32 addons\amxmodx\dlls\amxmodx_mm.dll
  6. 6Restart and check

    Restart the server and type these in the server console:

    bash
    meta list
    amxx version
    amxx plugins

    You should see AMX Mod X with the status RUN. If it says badf or nothing shows up, open the troubleshooting section below.

Server console after installing AMX Mod X
meta list shows AMX Mod X running

Make yourself admin#

Open the admins file:

cstrike/addons/amxmodx/configs/users.ini

Add a line at the end with your SteamID. Find it with the SteamID tool:

SteamID FinderEvery SteamID format from a profile link.Open
users.iniini
; "SteamID" "password" "access flags" "account flags"
"STEAM_0:1:12345678" "" "abcdefghijklmnopqrstu" "ce"
Use your own SteamID

ce means: log in by SteamID, no password needed. Anyone with that SteamID gets every admin power, so double-check the number.

Now reconnect and type amxmodmenu in your game console. The admin menu opens.

Tip from experience: give friends only the flags they need. A full list of flags is in the comments at the top of users.ini.

Add your first plugin#

Plugins from the XCSTRIKE library are already compiled for your AMX Mod X version. Download the install ZIP and copy it over cstrike.

AMXtestidk ................................................................................... – 5View plugin

Then turn the plugin on in plugins.ini:

addons/amxmodx/configs/plugins.iniini
; your plugins go at the end of the file
test.amxx

Got a .sma file instead? Compile it online, no tools to install:

AMXX compilerCompile .sma to .amxx online, for AMX Mod X 1.8.2 to 1.10.Open

A tiny plugin to learn from#

This is what a plugin looks like inside. Save it as hello.sma and compile it:

hello.smasma
#include <amxmodx>

#define PLUGIN  "Hello"
#define VERSION "1.0"

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, "you"); // name, version, author
    register_clcmd("say /hello", "cmd_hello");
}

public cmd_hello(id)
{
    client_print(id, print_chat, "Hello! You are player #%d", id);
    return PLUGIN_HANDLED;
}

Players type /hello in chat and get an answer.


Useful settings#

The main config is amxx.cfg. These are the lines most admins change:

addons/amxmodx/configs/amxx.cfgcfg
// Show admin names when they kick or ban (0 = hide, 1 = show)
amx_show_activity 2

// Seconds a map vote lasts
amx_vote_time 10

// Allow players to vote for the next map
amx_vote_allowed 1
CVARDefaultWhat it does
amx_show_activity2Show admin actions to players
amx_vote_time10How long a vote lasts, in seconds
amx_vote_allowed1Players can start votes

Start the server with the right map#

start.batbat
hlds.exe -console -game cstrike +map de_dust2 +maxplayers 32 -port 27015

Screenshots#

Watch it done#

YouTube video not recognised: PUT-YOUR-YOUTUBE-LINK-HERE

Troubleshooting#

AMX Mod X shows "badf" in meta list

The file path in addons/metamod/plugins.ini is wrong. On Linux, names are case sensitive: amxmodx_mm_i386.so is not the same as AMXModX_mm_i386.so. Copy the path exactly from this guide.

"meta" is an unknown command

Metamod is not loading. Check the gamedll line in liblist.gam, and make sure the file is in addons/metamod/, not in addons/metamod/dlls/.

A plugin says "bad load" or "failed"

Open the newest file in the logs folder:

cstrike/addons/amxmodx/logs/

Most of the time the plugin was compiled for a different AMX Mod X version, or it needs a module (like ReAPI) that is not installed.

The server does not start at all

Put back the original line in liblist.gam. If it starts again, one of the files above is in the wrong place.

Still stuck? Ask on the forum and say which step fails. Paste the error from the console.


Bonus: catch cheaters#

Once you have admins, give them a way to check suspicious players. CheatDetector is free and makes a public report you can link in a ban appeal.

Download CheatDetectorThe free cheat scanner for CS 1.6 and CS2 players.Get it

Download CheatDetector.zip

Next steps#

Guide not found or not published: how-to-make-a-cs-1-6-server

When the server is ready, put it on the list so players find it:

Add your serverList your server on XCSTRIKE and get players.Open Download CS 1.6Free, clean client on NextClient 8684, with the XCSTRIKE server list.Download
Was this guide helpful?
Thanks for the feedback!
Stuck on a step?Ask other server admins on the forum. Say which guide and which step.
Ask on the forum