Saturday, November 29, 2008

How to Add Admins and Give Access Flags in AMX Mod X

What is AMX Mod X:



To know what is AMX and for what purpose is it used, you may need to see the other posts of this blog, but very briefly, AMX Mod X is a Server Administration and Game Play Changing Tool for Cs1.6 or any version of CS.



How to install AMX Mod X:



For this, you must go to the other posts, it cannot be briefed.



How to add Admin in AMX Mod X:



In AMX Mod X, you can add number of admins who can control the server with out the necessity of the Rcon password. Let me explain you clearly,



To add an Admin, write a line like the one shown below, in the users.ini file. The location of the users.ini file is ...\cstrike\addons\amxmodx\configs\users.ini.
"Name/IP" "" "abc....(all the flags)" "c/d"

The last part of the line, that is c/d is dependent on what parameter are you giving in the first part of the line. Use c for name and d for IP. See the flags explained in users.ini file to confirm this. The second parameter is for password. This is amx password and can be given in config.cfg. This can be neglected if you give the IP. This is useful if there is another users trying to access the admin privileges by changing his name to the Admins name. So, you need to give some password in the second field. The same password should be set by the Admin whom you are giving the privileges to. This can be done by adding this line in the config.cfg of his CS1.6 like this
setinfo _pw "password"

This line hould be added to either config.cfg or userconfig.cfg. The _pw is the value of amx_password_field. If you are willing to use another variable, you can do that by the command amx_passwors_field "variable". This is also present in amxx.cfg. There is no difference between these two configs. Now that you have added him as the admin, even without Rcon, the user who is granted the Admin privileges can do everything that admin can do.

What are AMXX Flags:


Some times, you may want to give him access to only some commands like, map changes etc. You don't want him to use kick or any other command like that. So, what you should do is to give that flags pertaining to only those which you want him to do. This can be done by seeing the corresponding flags and putting those in the third part of the line. If you give only "j" in the third part of the line, he can just change the map.

Also, he can use only the amx_map command to change the map and cannot use changelevel command. This is because, amx commands can only be accessed like this.

Some Examples:


  • "192.168.1.137" "temp" "j" "d" - This grants the user with that IP to commands that change map only. That too amx_map and not changelevel command. He should use setinfo _pw "temp" to get the access.
  • "Temp" "temp" "j" "c" - The user with the name Temp can get the access if he has correct password set in setinfo _pw.
  • "192.168.1.137" "temp" "j" "de" - There is no password needed, just he will be granted access.
  • "Temp" "*" "abcdefghijklmnopqrstu" "c" - The user Temp is given admin privileges to all the commands of AMX. This is because all the flags are added in the third parameter. And his password set in _pw can be anything.

Now, if you want to give all the users a certain level of access, you can do that by going to the amxx.cfg file of AMX Mod X. You can see that line in the beginning of amxx.cfg saying default access. That means, all the users will be given that access. amx_default_access "j" is the command for it, to use it in the middle of the game.

Also, if you want to give the users access based on a single file or plugin, you can do that. This can be done by seeing the corresponding flags in the file cmdaccess.ini in the same folder as users.ini. In that file, an access flag is given to each of the plugin files. This makes it easier to grant some command access to the users which are in a single plugin.

No comments:

Post a Comment