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:
; 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:
; <> <> <> <>
; "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:
"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:
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.
No comments:
Post a Comment