• AMX Guide Home
  • Step 1: Installing MetaMod
  • Step 2: Installing AMX
  • Step 3: Setting up AMX
  • AMX by File:
    • amx.cfg
    • mysql.cfg
    • clcmds.ini
    • cmds.ini
    • cvars.ini
    • maps.ini
    • modules.ini
    • plugins.ini
    • speech.ini
    • configs.ini
    • users.ini
  • AMX by Topic:
    Admins:
    • Creating
  • Commands:
    • Cmds Guide
  • Plugins:
    • Installing
    • Compiling
  • Modules:
    • Installing
  • Menus:
    • All Menus
  • Languages:
    • Config
    • Add
  • Popular:
    • Weapons
    • Stats Setup
  • Credit
AMX Mod Setup Guide
Half-Life server administration by OLO

cmds.ini - Commands menu

The cmds.ini file in your addons\amx\config folder contains a list of commands that may be run from the Commands Menu. This is enabled by using the amx_cmdmenu command. This is what the default cmds.ini looks like:

; Menu configuration file
; File location: $moddir/addons/amx/config/cmds.ini
; To use with Commands Menu plugin

; NOTE: By default in all settings the access level is set to "u".
;       However you can change that, to limit the access to some settings.

; Commands Menu:
; < description > < command > < flags > < access level >
; "a" - execute from server console
; "b" - execute from admin console
; "c" - execute on all clients
; "d" - back to menu when executed

"Pause"         "amx_pause"         "ad" "u"
" "             "-"                 ""   "u"
"Restart Round" "sv_restartround 1" "a"  "u"

(Note that a semi-colon ; was inserted at the beginning of some lines. This prevents them from being used.)

Adding commands to the menu for use should be entered as other commands are shown in this file. The entry just below the "Pause" is for a space separator in the menu (see below). The difference between flags a and b is some commands may only work from the servers console and not the clients. Non AMX commands like "restart" for restarting map is a command that must be run from the server console.

Here are some examples of how to add a vote command to the menu for Dust2, and a command for restarting the current map:

"Restart Map"    "restart"              "a"   "u"
"Vote Dust2"     "amx_votemap de_dust2" "a"   "u"

This menu is accessed in the game by typing amx_cmdmenu in the console. Or by binding a key to that command. The menu will show up on the left side of your screen while playing. It looks like this with the added commands from above:

Commands Menu
1. Pause

2. Restart Round
3. Restart Map
4. Vote Dust2

9. More
0. Exit
1/1

Just select the number of the command you want to run and that's it. Any changes made to the cmds.ini file will show up after the next map change or server restart.

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