go to the Main page
slide show

www.Create-Server.com » Tutorials » How to make itself an administrator?

Tutorials: How to make itself an administrator?

Author: 3JIou-TaTaPuH (20-05-2009, 20:39)
How to make itself an administrator?


users.ini - Setting up admins

The users.ini file in your addons\amx\config folder is where players are given admin priviledges under AMX. It contains the different levels of admin access for a default install. Below are some examples of how to set up admin access for your admins.
The first part of the users.ini file is labeled "Access Flags". These letters will define what commands your admins will have access to:
Access flags:
a - immunity (immune to AMX commands such as kick, slap, or ban.)
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

The next part of the users.ini is labeled "Account Flags". These options control how the user is authenticated:
Account flags:
a - disconnect player on invalid password
b - clan tag
c - this is steamid (or wonid)
d - this is ip
e - password is not checked (only name/ip/steamid needed)
k - name is key-sensitive, so if you name "NoIvEl" that means players can use nicknames like "noivel", "NOIvel", "nOIVel etc., but not "NoIvEl"

The format of making an admin

The format of the entry for each admin is this:
(name|ip|steamid) (password) (access flags="flags") (account flags="flags")

Admin Access by Player Name or Clan tag

This is not the best way to grant admin access. It requires the client to set a password on their end. Many players can do this, how ever many do not grasp the concept of editing config files let alone with the correct info. It's a burden on the person setting up the access and the person receiving it in the end, and there is no added security with this method over access by Steam ID.
"Noivel" "CreateServer" "abcdefghijklmnopqrstu" "a"
"[-O-]" "wacky" "abcdefghijklmnopqrstu" "a"

(Hint: Hover your mouse over the admin entries listed above for additional tips)
Above is what you do on the server's side. The client must have the password entered on their side also. To do that, create a file in your cstrike folder called userconfig.cfg if you don't already have one. In it, have the client put setinfo _pw "password" in it. For example:
setinfo _pw "CreateServer"

The password field and password should match what you have on the server. For more info on this, go here.
How to make itself an administrator?

Admin Access by IP address
You would want to use this method only if you are connecting to a server on a LAN. On a LAN without internet access, players will not have unique Steam id's. So this method allows you to assign admin rights to your computer's address instead. If the IP is dynamic, then this could change though so keep that in mind.
"192.168.0.100" "" "abcdefghijklmnopqrstu" "de"

Admin Access by Steam or WON ID

This is the method just for STEAM version. Admin access is set up for the clients with this one line. The client doesn't have to do anything. Once you get the player's Steam ID, that's all that is needed. You don't even need a password since your Steam/WON ID is yours and no one else can have it unless your CD-Key gets out. (Use your wonid if applicable. Examples shown work for Steam and WON servers.)
"STEAM_0:1:12345" "" "abcdefghijklmnopqrstu" "ce"

Putting it all together

Now if all the players mentioned above were in the same users.ini file it would look like this:
"Noivel" "CreateServer" "abcdefghijklmnopqrstu" "a" ; Jason
"[-O-]" "wacky" "abcdefghijklmnopqrstu" "a" ; clan [-O-]
"192.168.0.100" "" "abcdefghijklmnopqrstu" "de" ; Jeff's IP
"STEAM_0:1:12345" "" "abcdefghijklmnopqrstu" "ce" ; Bigz - Mike

I like to use comments in config files and use of the TAB key keeps things formatted nicely too. Sometimes you can forget who some people are or they change their player name alot. So comments at the end of a line can be useful in adding more details about the person. Use a semi-colom ";" at the beginning of a comment in .ini files. What ever is behind the ; is ignored by AMX.
Information got from AMX Mod Setup Guide
Half-Life server administration by OLO (c)
Tags: admin
Custom Search
Views: 8190  Comments (9)  Print
Related News...:

Users
Joined: 16.08.2010, ICQ:
#1: safeerbhatti (28 September 2010 08:45)
"Safeer" "" "abcdefghijklmnopqrstu" "e"
this is simple way to make admin
    

Users
Joined: 2.12.2010, ICQ:
#2: Ednanz (16 April 2011 02:46)
Why I still cant be an admin? This is my format:
"SHIFT | Delu5ion**" "" "abcdefghijklmnopqrstu" "e"
But when i join i still a normal player. Any Solutions?
    

Users
Joined: 22.04.2011, ICQ:
#3: violator (22 April 2011 02:06)
same problem here.amx modx has been installed correctly.my format is-

"|| MA CHOS || V I O L A T O R ||" "" "abcdefghijklmnopqrstu" "e"

I also join as normal player still...any help??
    

Users
Joined: 10.05.2011, ICQ:
#4: shootr (15 May 2011 13:02)
sdasd
    

Users
Joined: 25.06.2011, ICQ: qfqfqf
#5: tazebama (9 July 2011 00:48)
it says kicked:"you have no entry to the server..."
    

Users
Joined: 25.06.2011, ICQ: qfqfqf
#6: tazebama (11 July 2011 13:45)
,,, help me please
06
    

Users
Joined: 15.07.2011, ICQ:
#7: sachin (15 July 2011 02:26)
/admin does not shows me up as admin nor to my friend
    

Users
Joined: 16.08.2010, ICQ:
#8: safeerbhatti (14 September 2011 13:51)
start the server
goto user.ini
then add this line
"Safeer" "" "abcdefghijklmnopqrstu" "e"
then
goto admin console type
amx_reloadadmins
    

Users
Joined: 31.12.2011, ICQ:
#9: vikas (2 January 2012 06:10)
YOU HAVE NOT ENTRY TO THE SERVER (FIXED)

FOR EG.

THIS IS MY ACCOUNT

"VICKY" "VIK" "ABCDEFGHIJKLMNOPQRSTU" "A"

THEN WHEN I JOIN GAME ERROR COME U HAVE NO ENTR TO THE SERVER

SO BEFORE JOIN OPEN GAME CONSOLE BY PRESS ` KEY THEN TYPE SETINFO _PW "PAS"

SETINFO _PW VIK

THEN JOIN SERVER YOU WILL BE ADMIN


ENJOY :d
    
Information
Information
Members of Guests cannot leave comments.



Copyright © 2009-2010. All rights reserved.
Terms of Use - Use of this site signifies your agreement. www.Create-Server.com ™