How do I add admins?

Post Reply
User avatar
Nick|NFo
Former staff
Former staff
Posts: 2252
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Mar 30, 2003 1:56 pm
Location: 127.0.0.1

How do I add admins?

Post by Nick|NFo »

There are two ways to add admins in SourceMod, a simple way and a more detailed (more customizable) way:

Simple

Once SourceMod is installed, you need to edit the addons/sourcemod/configs/admins_simple.ini file on the file manager page of your control panel.

It is setup with 2 required parameters and one optional one.

"authentication info" "access flags" "password"

Authentication info should be your STEAMID for most circumstances, like "STEAM_0:0:3319". Access flags are the flags that determine which commands and levels of access that particular person has access to, such as "abc" for reservation, kick and ban. Password is optional and for simplicity, it should be left alone.

Here is an example line:
"STEAM_0:0:3319" "abc"
Detailed

For the detailed customized way of adding admins, you need to edit the addons/sourcemod/configs/admins.cfg file on the file manager page of your control panel.

Its format is:

Code: Select all

Admins
{
	"Admin Name"
	{
		"auth"		"[steam|name|ip]"
		"identity"	"[unique id]"
		"[option1]"	"[value1]"
		"[option2]"	"[value2]"
		/* .... */
	}
}
Available options are:

* auth: Required. Must be one of steam, name, or ip (unless there is a custom auth method), and instructs SourceMod how to interpret the identity value.
* identity: Required. Unique value that allows SourceMod to find this admin given an authentication method and the given value.
* password: Optional. Specifies the password the user must enter (see above section on passwords).
* group: Optional. Specifies a group name the user should inherit if available. More than one "group" line can be specified. There should be no '@' symbol as there is no ambiguity.
* flags: Optional. Default access flags the user should receive.
* immunity: Optional: Default immunity level the user should receive.

Example:

Code: Select all

Admins
{
	"Nick"
	{
		"auth"		"steam"
		"identity"	"STEAM_0:1:3319"
		"flags"		"abcdef"
		"immunity"	"5"
		"group"		"Head Admins"
	}

	"Nick 2"
	{
		"auth"		"steam"
		"identity"	"STEAM_0:1:5124"
		"flags"		"z"
		"immunity"	"99"
	}
}
You can refer to SourceMod's Wiki here for more information on Admins.

For setting up groups, check this wiki page.
Last edited by Juski on Sat Apr 23, 2016 6:17 pm, edited 1 time in total.
Reason: Typo fix.
-Nick
Post Reply