How To Create CS1.6 Online Private Dedicated Server counter strike 1.6 server counter strike 1.6 serial counter strike download counter strike wallhack counter strike aimbot counter strike download counter strike bots cs 1.6 bot cs 1.6 bots free counter strike download counter strike non steam cs 1.6 counter strike 1.5 download free counter strike counter strike game download counter strike server counter strike v1 6 How To Create CS1.6 Online Private Dedicated Server: cmds.ini - Commands menu

Monday, January 26, 2009

cmds.ini - Commands menu

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:
; <> <> <> <>
; "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.

No comments: