Saturday, 7 December 2013

How to become admin for your server(with amx)!!

Hi, again
This post is about how to become the  Admin  to your own server.The admin's job is very important and interesting too. An admin can do everything which other players can't like kick,ban,slay,slap etc.
So, let's start it!!

Follow the steps below:- (I hope you already have a ready-made server or you did as per previous post)

1.Go to C:\HLDS\cstrike\addons\amxmodx\configs then open users.ini with word pad or notepad.



2. The users.ini will look like :


  • At the bottom of this file you will see lines like this:

I.   ; "STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce"
II.  ; "123.45.67.89" "" "abcdefghijklmnopqrstu" "de"
III.  ; "My Name" "my_password" "abcdefghijklmnopqrstu" "a"
IV.   “loopback” “” “abcdefghijklmnopqrstu" "de"

The lines starting with ";" (semi-colon) are the comment lines.

The I,II and III lines are the three ways to become admin on the server,  you can be an admin either by Steam, by I.P or by Name .
If you want to become admin by steam or by ip address then you should have a Steam ID or a static ip address respectively.
And if  you choose the third way i.e by name then you have to set a password with that particular name for security purpose
The "abcdefghijklmnopqrstu" are the  Access flags or Access levels for the admins , above examples shows the full access of admins . 
The "ce","de","a"  are the Account flags.  

Access flags or Access levels:
; a - immunity (can't be kicked/baned/slayed/slapped and affected by other commands)
; b - reservation (can join on reserved slots)
; c - amx_kick command
; d - amx_ban and amx_unban commands
; e - amx_slay and amx_slap commands
; f - amx_map command
; g - amx_cvar command (not all cvars will be available)
; h - amx_cfg command
; i - amx_chat and other chat commands
; j - amx_vote and other vote commands
; k - access to sv_password cvar (by amx_cvar command)
; l - access to amx_rcon command and rcon_password cvar (by amx_cvar command)
; m - custom level A (for additional plugins)
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H
; u - menu access
; z - user (no admin)

 Account flags:
; a - disconnect player on invalid password
; b - clan tag
; c - this is steamid/wonid
; d - this is ip
; e - password is not checked (only name/ip/steamid needed)
; k - name or tag is case sensitive.  eg: if you set it so the name "Ham"
;     is protected and case sensitive (flags "k" only), then anybody
;     can use the names "haM", "HAM", "ham", etc, but not "Ham"


If you want to become an admin by Name  then replace the IV or last line of users.ini  with III line i.e  ; "My Name" "my_password" "abcdefghijklmnopqrstu" "a" . Now edit this line ,remove the semi-colon i.e ";" and replace My Name and  my_password  with your  Name  and Password  then save and close it.

3. To login with this password you have to write the following command in the console of your game:

 setinfo _pw "your password" 

  • Now you are all done.

 *********************************************************************************
  • Let me show you an example that what you have to do:


I am choosing my name as Rock and password as Metal,so i need to edit the last line of users.ini as this:   

"Rock" "Metal" "abcdefghijklmnopqrstu" "a"





  • Now i am gonna open the game and will  login with these information and command: 



  • Now i am the admin of the server , to check so, i need to write any of the admin command in the game console(you can open it by pressing the Tilde Key) .


  • Here i type the command "amxmodmenu" and got this :




  • So,its confirmed that everything is working properly.


***********************************************************************************

  • You can check all the commands related to admin by typing "amx_help" in the console while you are online on your server.



Have Fun!!




No comments:

Post a Comment