Thread: [Solved] [HELPOP] Sourcemod Configs
View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-25-2021 , 13:12   Re: [HELPOP] Sourcemod Configs
Reply With Quote #4

Example with SourceMod (without SourceBans)

admins.cfg
Code:
Admins
{
 	"player_Alpha"
	{
		"auth"			"steam"
		"identity"		"x"
		"group"			"group_1"
	}

 	"player_Beta"
	{
		"auth"			"steam"
		"identity"		"x"
		"group"			"group_2"
	}

 	"player_Gamma"
	{
		"auth"			"steam"
		"identity"		"x"
		"group"			"group_1"
		"group"			"group_2"
		"group"			"group_3"
	}

 	"player_Zeta"
	{
		"auth"			"steam"
		"identity"		"x"
		"flags"			"abcdefghijklmn"
	}
}
admin_groups.cfg
Code:
Groups
{
	"group_1"
	{
		 Overrides
		 {
			"allow"		"sm_pmute"
			"allow"		"sm_punmute"
			"allow"		"sm_pgag"
			"allow"		"sm_pungag"
			"allow"		"sm_psilence"
			"allow"		"sm_punsilence"
		 }
		"flags"			"a"
	}

	"group_2"
	{
		"flags"			"ab"
	}

	"group_3"
	{
		"flags"			"cdefg"
	}
}
- player_Alpha have access to all commands and features with admin flag "a".
Have also access to specific commands in admin group 1.
- player_Beta have access to all commands and features with admin flags "ab"
- player_Zeta have access to all commands and features with adminflags "abcdefg"
Have also access to specific commands in admin group 1.


Avoid give admin root flag "Z". This grant all access and bypass immunity check and so on. You not actually like it.
Instead, give yourself all flags, "abcdefghijklmnopqrst"


*edit
with admin_overrides.cfg, you can change commands and some plugin features admin flags to else.

Last edited by Bacardi; 03-25-2021 at 13:15.
Bacardi is offline