AMX Mod Setup Guide
Half-Life server administration by OLO

# 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: By default in all settings the access level is set to "u".
; However you can change that, to limit the access to some settings.
; Client Commands Menu:
; < description > < command > < flags > < access level >
; "a" - execute from server console
; "b" - execute from admin console
; "c" - execute on selected player
; "d" - back to menu when executed
"Kick player" "amx_kick #%userid%" "b" "u"
"Slay player" "amx_slay #%userid%" "bd" "u"
"Slap with 1 dmg." "amx_slap #%userid% 1" "b" "u"
"Ban on 5 minutes" "amx_ban #%userid% 5" "b" "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 shown in this file. Some commands require additional input when using like the amx_banip command. This command needs to know an amount of time to perform its task. You will notice in the menu 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.

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 plugin 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.