• 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

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: Access level defined here overrides the access level of the command
; (if executed from admin console), so use with care.

; 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"         "bd" "g"
"Restart Round" "sv_restartround 1" "a"  "g"

(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 difference between flags a and b is some commands may only work from the server's console and not the client's. Non AMX commands like "restart" for restarting the map 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

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.