• AMX Guide Home
  • Step 1: Installing AMX
  • Step 2: Enabling AMX
  • Step 3: Configuring AMX
  • AMX by File:
    • amx.cfg
    • mysql.cfg
    • clcmds.ini
    • cmds.ini
    • configs.ini
    • cvars.ini
    • maps.ini
    • modules.ini
    • paths.ini
    • plugins.ini
    • speech.ini
    • users.ini
  • AMX by Topic:
    • Creating Admins
    • Commands Guide
    • Plugin Installation
    • Plugin Compiling
    • Module Setup
    • Menu Use
    • Language Setup
    • Language Install
    • Weapon Restriction
    • Stats Setup
    • Custom Map Configs
  • Misc. Resources
  • Credit
AMX Mod 2005v1.0 Setup Guide
Half-Life server administration

The default commands

This page could be really long if every command was listed. Aside from that, some commands are meant to be used from the client console, while others may only work from the server console or via rcon. So this page will show you how to access what ever commands are available to you depending on how you are connected to the server. There will also be examples of how some of the commands work to give you a good idea of how to make things happen.

From the Console:

This information can be accessed from the server's console, and also from the client using RCON. Additionally, tools like HLSW and web based server administration tools will also be able to use this as long as they're connecting to the server directly or using RCON to issue commands.

The very first command you need to know exposes several more. From the server's console, type amx and press enter. You will see this:

Usage: amx <command> [ argument ]
Commands:
   version                - display amx version info
   plugins                - list plugins currently loaded
   modules                - list modules currently loaded
   cvars                  - list cvars registered by plugins
   cmds                   - list commands registered by plugins
   pause < plugin >       - pause a running plugin
   unpause < plugin >     - unpause a previously paused plugin

The definitions above are self explanatory. Some examples of how these commands are used:

  • amx plugins <- Displays what plugins are running.
  • amx pause nextmap <- This would pause the nextmap.amx plugin.

Some commands not listed:

  • amx list <- Same as amx plugins
  • amx help <- Same as amx

From the Client:

The best command for clients (those who you choose to admin your server) is amx_help. This command is done in the client console. It will display any command that the player has access to, and only those commands. This means each person will see different results if their access level differs from others. Typing amx_help in the console will show you something like this:

amx_help

----- AMX Help: Commands -----
  1: amx_addadmin <name|#userid|authid|ip> <password> <access> <flags>
  2: amx_addmenu <menu name> <menu cmd> <menu access> <menu info> <number of items per page>
  3: amx_addmenuitem <menu name/cmd> <plugin> <item name> <item cmd> <flags> <access> <display players> <All arg> <Team1 arg>
  4: amx_addmetk - lets you punish yourself
  5: amx_ban <name|#userid|authid|ip> [ip] <minutes> [reason]
  6: amx_banmenu - displays ban menu
  7: amx_bury < part of nick > or < @ team > or < # index >
  8: amx_cancelvote - cancels last vote
  9: amx_cfg <filename>
10: amx_cfgmenu - displays configs menu
----- Entries 1 - 10 of 129 -----
----- Use 'amx_help 11'

The list above shows the first 10 commands available for my level of access. To see more commands, see the example on the last line amx_help 11. This shows the next 10 commands starting at the 11th command. You can keep doing this until there are no more commands left in the list.

Each command if typed with nothing after it should give you an example of how it works. To find out how to use the amx_kick command, just type amx_kick and press enter. You will get this:

amx_kick
Usage: amx_kick <name|#userid|authid> [reason]

So let's say you wanted to kick a player named -l337- PuNiSheR and his userid (not SteamID) is 150, you could kick him like this:

amx_kick punish language

or:

amx_kick #150 abusing the voice comm

You can see above I added a reason for the kick also. This will help when reviewing the logs and you want to know why a person was kicked or banned.

Below you will find additional examples of various AMX commands and how to use some of them. This is by no means all of what is available to you.

Adding admins on the fly

amx_addadmin STEAMID_0:0:123456 "" abcdefg ce
amx_addadmin 83.143.10.41 "" fghi de

amx_makeadmin john bcdefg
amx_makeadmin john (to reset user's flags)

Chat messaging

say @@@ = amx_scrollsayy
say @@ = amx_csayy
say @ = amx_tsayy
say ### = amx_sayy
say ## = amx_chat
say # = amx_psayy
say $$$ = amx_scrollsayy
say $$ = amx_flicksayy
say $ = amx_fxsayy

amx_tsay white put your message here (no need to use quotes)

Player management

amx_kick john you are a cheater
amx_ban john 120 you are a cheater
amx_ban john ip 120 you are a cheater
amx_name john this is your new name

Voting

amx_voteban john
amx_voteban john ip
amx_vote mp_startmoney 800 5000 16000
amx_vote "csdm_enable" "1" "0"
amx_vote "are you hungry?" "yes" "no" "maybe" "not your business"

Displaying commands from a plugin in a menu

amx_plugcmdmenu (displays the plugins cmds menu)
amx_plugcmdmenu adminchat.amx (displays the cmds menu of adminchat)
amx_plugcvarmenu (displays the plugins cvars menu)
amx_plugcvarmenu admin.amx (displays the cvars menu of admin)

The above info should give you a good idea how the AMX commands work, and how to get an example if you're not sure. Someday I will add a full command listing to this page but due to lack of time, I can't put all the commands here and define each one. amx_help is your friend!

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