• 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

clcmds.ini - Client Cmds Menu

The clcmds.ini file in your addons\amx\config folder contains a list of commands to be performed on a client that can be chosen from the Client Cmds Menu. This is enabled by using the amx_clcmdmenu command. This is what the default clcmds.ini looks like:

; Client commands configuration file
; File location: $moddir/addons/amx/config/clcmds.ini
; To use with Players Menu plugin

; NOTE: Access level defined here overrides the access level of the command
; (if executed from admin console), so use with care.

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

"Kick player"       "amx_kick  #%userid%"   "b"   "c"
"Slay player"       "amx_slay  #%userid%"   "bd"  "e"
"Slap with 1 dmg"   "amx_slap  #%userid% 1" "bd"  "e"
"Ban for 5 minutes" "amx_ban   #%userid% 5" "b"   "d"

(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 shown in this file. Some commands require additional input when using like the amx_ban command. This command needs to know an amount of time to perform its task. You will notice in the ini file the number 5 at the end of the command. This is the same way you would enter it in the console. The difference between flags a and b is some commands may only work from the server's console and not the client's. You are also not limited to just the use of %userid%. You can use %userid%, %authid%, and %name%.

If you wanted to add a 3rd party plugin like amx_rocket to the menu, and you wanted the menu to disappear after the command was run it would look like this:

"Make player a rocket"   "amx_rocket #%userid%" "b"   "u"

This menu is accessed in the game by typing amx_clcmdmenu 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:

Client Cmds Menu
1. RYNO SKIN
2. m0gely
3. Mr.Magoo
4. : ) Gurl
5. SMAN
6. GrEeN ToMaTo
7. *Groovy*Chicka

8. Kick Player

9. More...
0. Exit
1/2

Options 1. through 7. will display player names. If you select one of these numbers, what ever punishment is shown at number 8. is what's going to happen to them. By pressing 8., you will cycle through the list of commands specified in the clcmds.ini file. If you have more than seven players, option 9. will show you them. Option 0. takes you to the previous list of players.

You may notice in the menu some player names are a slightly darker color or grayed out. This indicates a player who has immunity. If the command is immunity aware then you will not be able to perform it on them.

Any changes made to the clcmds.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.