Published By:

Sukanta Halder

Published On:

29th April 2015, 19:27 (IST)

Location:

Thakurnagar, West Bengal, India

Click on Home Icon to go to Home page.

Click on Back Icon to go to previous page of this article.

Click on Forward Icon to go to next page of this article.



How to add admin:

In this part, I’ll discuss the process of adding admins in a Half-Life Dedicated Server (i.e. Counter-Strike 1.6 server). In AMX Mod X all admin information is stored in the user.ini file. You can find this file in cstrike\addons\amxmodx\configs. If you open this file using any text editor you will find lines started with a semicolon (i.e. ;). These lines are comment lines. At the bottom of this file, you have to save admin information. The server will execute this file at the time of starting. One line for one admin entry and a space between each parameter. Before saving any admin entry we have to know about four options Authentication, Password, Access Right & Connection Properties.

Authentication: In the early days of Half-Life 1, every server authenticates its admin by using the admin’s name. Now Concept has changed. Nowadays it is recommended to authenticate an admin by their Steam ID, you can also authenticate an admin by his static IP address.

Password: In your server, there might be some non-steam admins. In that case, it is important to set an admin password. For non-steam admin, we have to authenticate that player by his/her name. If we don’t set any admin password, any player with the admin name will get admin privilege. Though there is another way to authenticate a non-steam player i.e. using his/her static IP address. But in general internet users use the dynamic IP address. So it is highly recommended to set a password for both steam and non-steam admins.

            Note: If there is an admin password in the server, then each and every admin has to set his/her password. Admins have to type setinfo _pw “pass” (where the pass is the password assigned to him/her) in his game console.

Access Right: There are 22 access levels (also known as access flags) in AMX Mod X. I’ll discuss all of them in detail.

Flags

Purpose

a

Immunity (can't be kicked/banned/slayed/slapped and affected by other commands).

b

Reservation (can join on reserved slots).

c

Access to amx_kick command.

d

Access to amx_ban and amx_unban commands.

e

Access to amx_slay and amx_slap commands.

f

Access to amx_map command.

g

Access to amx_cvar command (not all cvars will be available).

h

Access to amx_cfg command.

i

Access to amx_chat and other chat commands.

j

Access to 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 (for additional plugins).

o

Custom level C (for additional plugins).

p

Custom level D (for additional plugins).

q

Custom level E (for additional plugins).

r

Custom level F (for additional plugins).

s

Custom level G (for additional plugins).

t

Custom level H (for additional plugins).

u

Menu access.

z

User (no admin).

 

Many servers make two type admins Head admin and Normal admins. They give all access to their Head admins i.e. Head admins have access flag a to u (don’t put z. If you put z the player will become normal player.) And for Normal admins, they restrict some flags like a, k, l. They omit these flags at the access level.

 

Connection Properties:

Flags

Purpose

a

Disconnect player on an invalid password.

b

Clan tag.

c

This is a steam ID.

d

This is IP.

e

The password is not checked (only name/IP/steam ID needed).

k

Name or tag is case sensitive.

 

Note: In case of k flag suppose you set name “Abc” then anybody can use name “aBc”, “abC”, “ABC” etc. but no one can use the name “Abc”.

 

Format of admin account:

< Name |IP| steam ID> <password> <access flags> <account flags>

 

Example of admin entry:

1."STEAM_0:0:123456" "" "abcdefghijklmnopqrstu" "ce"

2."123.45.67.89" "" "abcdefghijklmnopqrstu" "de"

3."My Name" "my_password" "abcdefghijklmnopqrstu" "a"

 

Now look at those entries, in the example, no 1 1st parameter is steam ID, the 2nd parameter for the password in this entry password field is blank i.e. no password has been set, 3rd parameter is access flags, and the 4th parameter is connection flags. As steam ID is used to make admin and no password set so we used flag c and e. For example no 2 in 1st parameter we used IP address and we didn’t set any password so in the last parameter we used flag d and e. For example no 3 we used the name and we also set a password for that reason we used an at last parameter. Suppose you used the steam ID in 1st parameter and also set a password then you have to use ac flag in the 4th parameter or suppose you used IP in fast parameter and also set a password in the 2nd field then you have to use ad flag in 4th parameter.

 

There are two different ways to add admins to your server.

Add admins normally: Just open the user.ini file using your favorite text editor, and put your admin entry and save the file. I already mentioned that in every line you can add only one admin entry and there will be a space gap between every parameter.

 

Add admin using SQL server: If you want to use the SQL server then you have to set up your SQL server. Go to the cstrike\addons\amxmodx\configs folder and open the modules.ini file using your favorite text editor. Enable SQL module by removing the colon (i.e. ;) which is at the front of mysql. Then you have to configure your SQL settings. Open the sql.cfg file using your favorite text editor from the same folder. Now you will get some cavers.

Cvar

Default Settings

Purpose

amx_sql_host

"127.0.0.1"

IP address of SQL server.

amx_sql_user

"root"

Username to connect to the SQL server.

amx_sql_pass

""

The password to connect to the SQL server.

amx_sql_db

"amx"

Database to use on the SQL server.

amx_sql_table

"admins"

The table to use for the admin_sql plugin.

amx_sql_type

"mysql"

The database type to connect to.

 

Next, you have to open the plugins.ini file and disable admin.amxx by putting a colon at the front of admin.amxx & enable admin_sql.amxx by removing the colon which is at the front of admin_sql.amxx.

It is recommended to use an SQL interface to add admin if you use SQL mod. The SQL quarry to add admin is INSERT INTO admins VALUES("STEAM_0:1:23456", "", "abcdefghijklmnopqrstu", "ce"); (it’s an example). You can also use the add_admin command in the server console to add your admin. Example amx_addadmin "STEAM_0:1:23456" "" "abcdefghijklmnopqrstu" "ce"

Now if you are using user.ini file and want to remove any admin just add a colon in front of that admin entry in the user.ini file. And in the case of SQL mode, you can remove admin by using the SQL interface.

Hope this post will help you. If you have any question feel free to ask. You can post your question(s) in the comment section I’ll answer them. You can also post your valuable comments. Thank you.

Latest News Updates

  • 09th January 2021

PUBG Mobile has released 1.2 final update. you can get all information from PUBG Mobile 1.2 Final update.

 

  • 09th November 2020

PUBG Mobile has released 1.1 final update. you can get all information from PUBG Mobile 1.1 Final update.

 

  • 07th September 2020

PUBG Mobile has released 1.0 final update. you can get all information from PUBG Mobile 1.0 Final update.

 

  • 14th July 2020

Brand new Royal Pass season 14 starts from today. So I published a new article on PUBG Mobile Season 14 Weekly Mission Details. This article will be updated weekly basis, when new week's missions will be unlocked. I also published Detail information on Royal Pass Season 14 here you will get detail information on Level wise rewards.

 

  • 07th July 2020

PUBG Mobile has released 0.19.0 final update. you can get all information from PUBG 0.19.0 Update (Final).

 

  • 26th June 2020

PUBG Mobile has released 0.19.0 beta version. you can get all information from PUBG 0.19.0 Update (Beta).

 

  • 21st May 2020

In Royal Pass Season 13 points of weekly missions has been changed. So I've updated my old article PUBG Mobile Royal Pass Points Calculation as per new point calculation.

 

    You can also follow us at                                  Contact us:E-mail id.: webadmin@thegamingzone.co.inMobile Number: +91-8900760333~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Copyright © 2015-21 The Gaming Zone. All Rights Reserve.This website was last updated on 25-01-2021 at 21:00 (IST).