Difference between revisions of "Adding Admins (SourceMod)"

From AlliedModders Wiki
Jump to: navigation, search
(New page: SourceMod has as very detailed and flexible administration system, and it can be quite daunting to users. To simplify things, there are a number of "flags" which specify generic permissio...)
 
m
Line 3: Line 3:
 
Aside from that, there are (currently) two provided ways of storing admins.  One via a simplified flat file, and another via a more complex tree-based file.
 
Aside from that, there are (currently) two provided ways of storing admins.  One via a simplified flat file, and another via a more complex tree-based file.
  
'''Note:''' As of this writing, only steam-based authentication is enabled.
+
'''Note:''' As of this writing, only steam-based authentication is enabled.  <tt>admin-auth.smx</tt> must be running for authentication to work, and <tt>admin-flatfile.smx</tt> must be running for admin file parsing to work.
  
 
=Levels=
 
=Levels=

Revision as of 00:57, 8 June 2007

SourceMod has as very detailed and flexible administration system, and it can be quite daunting to users. To simplify things, there are a number of "flags" which specify generic permissions administrators can have.

Aside from that, there are (currently) two provided ways of storing admins. One via a simplified flat file, and another via a more complex tree-based file.

Note: As of this writing, only steam-based authentication is enabled. admin-auth.smx must be running for authentication to work, and admin-flatfile.smx must be running for admin file parsing to work.

Levels

First, let's quickly run down the provided levels:

Name Flag Purpose
reservation a Reserved slot access.
generic b Generic admin; required for admins.
kick c Kick other players.
ban d Ban other players.
unban e Remove bans.
slay f Slay/harm other players.
map g Change the map or major gameplay features.
cvar h Change most cvars.
config i Execute config files.
chat j Special chat privileges.
vote k Start or create votes.
password l Set a password on the server.
rcon m Use RCON commands.
cheats m Change sv_cheats or use cheating commands.
root z Magically enables all flags.

Immunity

There is no immunity flag. Instead, there are three types of immunity:

  • Default immunity; immunity from admins who do not have default immunity.
  • Global immunity; immunity from admins who do not have global or default immunity.
  • Specific immunity; immunity from a specific group (see advanced section).

Simple Admins

The easiest way to add administrators is through configs/admins_simple.ini. This is a flat file which requires two parameters per line: authentication info, and flags.

Three examples are provided:

"STEAM_0:1:16"		"bce"			//kick, ban, slay for this steam ID
"127.0.0.1"		"z"			//all permissions for this ip
"BAILOPAN"		"abc"	"Gab3n"		//name BAILOPAN, password "Gab3n": gets reservation, kick, ban