Showing posts with label AMX Files. Show all posts
Showing posts with label AMX Files. Show all posts

Tuesday, January 13, 2009

Custommenuitems.cfg of AMX Mod X

Custommenuitems.cfg will add menu items to either "amxmodmenu" for admins or "amx_menu" for users. A user gets the menu when he gives the command "amx_menu" in the console. But by default there wont be any items in this menu. These can be added by this line in this config file.

amx_addclientmenuitem "menu label" "menu command" "access flags" "plugin name"

To add something to the main menu of amxmodmenu, this is the command to be given in this line,

amx_addmenuitem "menu label" "menu command" "access flags" "plugin name"

This menu label will be added to the amxmodmenu in its fourth page.

Ex: amx_addmenuitem "Enable GunGame" "amx_gg_enable 1" "" "gungame.amxx"

Flags can be almost neglected in many cases. But you need to add the required flags. If the user needs to access a menu the flags need to be include is "u" and etc.

amxx.cfg File of AMX Mod X

AMX Mod X uses a main config file called amxx.cfg in addons/amxmodx/configs folder. This is a file which saves the initial settings of the AMX Mod X. This config is loaded and the commands in it are executed when starting the AMX Mod X.

The first command amx_default_access "z" means that all the users who are playing as clients in the server can have the power z. Which is almost like just a user and no power.

Changing this to amx_default_access "j" means, that all the users can have the power "j". Means all the players can start voting of all kinds.

"amx_reservation 0" means there are no reserved slots. When someone starts a server they can reserve a slot for their friends by changing this to "amx_reservation 1". And that user needs to have the reservation flag set with his name in users.ini.

"amx_mode 1" this command enables/disables when set to 1/0 AMX Mod X.

Cvars.ini File of AMX Mod X

Cvars.ini file saves some of the configuration variables to enable the admins to change the configuration variables in game. These configuration variables sub-menu is shown in the amxmodmenu as Cvar Settings.

There are some default cvars added and many more can be added manually by adding a line below the default cvars as shown,

"mp_forcechasecam" "0" "1" "2" "u"

The three values "0" "1" "2" show the different values of that cvar and it is used to chose between.

Stats.ini File of AMX Mod X

This is a file created by the stats plugin and is not for modification. It just lists out the available Variables in the stats plugin.

Configs.ini File of AMX Mod X

Configs.ini file allows the admin to load the configs for the game through a sub-menu. This sub-menu is shown in "amxmodmenu" as Configuration. And is shown in second page of the amxmodmenu.

It lists out all the configs in the configs folder and the required config can be loaded just by selecting it in the game on screen menu.

Cmds.ini for AMX Mod Menu

This file cmds.ini is the file which stores the commands of the sub-menu "Server Commands" of AMX Mod X Menu which is shown by the command "amxmodmenu".

By default there will be "Pause" and "Restart Round" commands in the menu. But many more can be added manually just as explained in the previous post.

There are four options above the command descriptions. This helps for the commands to be executed on server consoles, admin consoles, all client consoles.

Cmdaccess.ini of AMX Mod X

This file stores the commands and the flags or powers which can access it (Considering Flags as Powers for simplicity). For example amx_map command can be accessesd by user with power " f " or flag " f ", but you want a user with flags "hej". So you can change the flag of that command to "h" or "e" or "j".

Users.ini already had set the flags to something, but the commands in the new plugins added wont be set by the users.ini file. So you need to change the flag values of the third party plugins in this file like the commands of CSDM, GunGame, AMX Match Deluxe commands etc.

clcmds.ini File of AMX Mod X

This is a file which saves the Client Command Menu of AMX Mod X Menu which is shown when the command 'amxmodmenu' is given in the console. This menu shows many sub menus. The Client Command menu is also the same. This has kick slap ban commands in it. This is not kick menu, it is Client Command menu present in the second page of "amxmodmenu".



This file can be changed to have many more commands like drop the clients weapon etc. The following is an example to show the addition of commands to this menu.

Add a line like this after the four lines previously present.

"Drop his Weapon" "drop" "c" "u"

You can see the "c" in the third parameter means that the command is executed from that players console. Like this many more commands can be added to this file.


You can see in the above screenshot the command "Drop his Weapon" is shown. The key 8 will change the command in these five commands each time it is pressed.

Modules.ini File of AMX Mod X

Modules.ini File saves the information of what modules to load while loading the AMX Mod X. It consists a list of modules. These modules should be existing in Modules folder of AMX Mod X. And hence any new module added to the AMX Mod X, like the CSDM Module a .dll file, should have its module placed in modules folder and its name written in modules.ini file.

A plugin is enabled if its name is written in the plugins.ini file and it can be disabled by adding a ';' in the beginning of the line where the filename is written.

Plugins.ini File of AMX Mod X

Plugins.ini file of AMX Mod X stores all the list of plugins to be loaded while loading AMX Mod X. These plugins are saved in Plugins folder of AMX Mod X. List of plugin file names including the .amxx extension. The previous AMX Mod used to have the plugins with .amx extension. Now the AMX Mod X users the .amxx extension.

If any new plugin is to be added to the Counter Strike AMX Mod X, like the GunGame or CSDM Plugin, it should be first placed in Plugins folder and its name should be added to the plugins.ini file of AMX Mod X.

A plugin is enabled if its name is written in the plugins.ini file and it can be disabled by adding a ';' in the beginning of the line where the filename is written.

Users.ini File and Flags in AMX Mod X

Users.ini file allows the administrator of AMX Mod X to give other users some powers to use some commands. The Powers are given by the help of Flags.

"Name/IP" "" "abc....(all the flags)" "c/d"

This line can be seen at the end of the users.ini file. You may see "loopback" or your IP address in the first parameter. The second parameter can be neglected as it is the password. The third parameter talks about the flags. The fourth parameter c/d is to be set depending up on the name or IP address given. Put c if it is name and d if it is IP address.

So now the user with this Name or IP addresses is going to get the powers given. You can see some letters beside each command in the same file. User with that letter included in the flags can use that command. Its as simple as giving powers just by defining a letter to each power.

Examples: A user with 'a' included in his flags cannot be kicked and banned. A user with 'b' included in his flags can have a slot reserved always. A user with 'c' included in his flags can kick other players. A user with 'd' included in his flags can ban and unban other players. A user with 'e' included in his flags can use amx_slay and amx_slap commands. A user with 'f' included in his flags can change maps. A user with 'j' included in his flags can put votes and use all the vote commands.