Raised This Month: $10 Target: $400
 2% 

Solved [HELPOP] Sourcemod Configs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RoseTheFox
Junior Member
Join Date: Mar 2021
Old 03-25-2021 , 06:11   [HELPOP] Sourcemod Configs
Reply With Quote #1

(I'm extremely new to alliedmodders forums, so disregard my stupidity with how things work please,. i'll learn it eventually!) Hey, my name is RoseTheFox and i'm seeming to have trouble with permission setups reguarding sourcemod and it's admin_overrides/admin_groups.cfgs

What i'm trying to do is have multiple custom groups set up to have access to only a certain set of commands, like for example; I have the permamute plugin and I want to keep that command access level to custom flags I've set for higher-staff ranks, and not let the lower immunity ranks have access to them, I also want to make it so that it doesn't of course show up in the easy-access admin menu, like limiting the lower-staff ranks to certain permission sets.

I've read up on the documentation and followed it the best I can and I haven't figured out how to get any of it to work properly, I've attached files of the custom groups and the over-ride and group file, of the commands I want set to what ranks to see if any of you can help me out? I'm not the brightest with this stuff, only now learning how to decompile and recompile plugins, so any help is appreciated!
Attached Files
File Type: cfg admin_levels.cfg (1.5 KB, 30 views)
File Type: cfg custom-chatcolors.cfg (3.1 KB, 18 views)
File Type: cfg admin_overrides.cfg (842 Bytes, 20 views)

Last edited by RoseTheFox; 03-26-2021 at 23:04.
RoseTheFox is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 03-25-2021 , 10:03   Re: [HELPOP] Sourcemod Configs
Reply With Quote #2

I'm not sure what are you expecting from us but I would recommend to look into sourcebans. It it's a more advanced and up to date solution than permamute and provides you a webpanel to create groups with permissions and overrides so you don't have to edit the configs by hand.

Last edited by TomL.; 03-25-2021 at 10:03.
TomL. is offline
RoseTheFox
Junior Member
Join Date: Mar 2021
Old 03-25-2021 , 13:49   Re: [HELPOP] Sourcemod Configs
Reply With Quote #3

I'm not expecting anything, I was just looking to see if anyone could help make it so that some of these commands are locked behind certain custom flags, so that the lower ranked flag can not use them
RoseTheFox is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-25-2021 , 14: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 14:15.
Bacardi is offline
RoseTheFox
Junior Member
Join Date: Mar 2021
Old 03-25-2021 , 14:36   Re: [HELPOP] Sourcemod Configs
Reply With Quote #5

What would be an example with Sourcebans, if you can add? Also thank you so much! I'll take a look at this!
RoseTheFox is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 03-25-2021 , 15:27   Re: [HELPOP] Sourcemod Configs
Reply With Quote #6

I mean you said you checked the documentation (admins.cfg and admin_groups.cfg) which provides you with the same informations as Bacardi posted?
Now you ask about Sourcebans when I already told you that you won't have to mess around with configs by hand but use the webpanel to change things.

Sourcebans is using the same format and functions but just saved in a subfolder with a prefix (sourcebans/sb_admins.cfg, sourcebans/sb_admin_groups.cfg etc.)

Last edited by TomL.; 03-25-2021 at 15:35.
TomL. is offline
RoseTheFox
Junior Member
Join Date: Mar 2021
Old 03-26-2021 , 11:34   Re: [HELPOP] Sourcemod Configs
Reply With Quote #7

Quote:
Originally Posted by TomL. View Post
I mean you said you checked the documentation (admins.cfg and admin_groups.cfg) which provides you with the same informations as Bacardi posted?
Now you ask about Sourcebans when I already told you that you won't have to mess around with configs by hand but use the webpanel to change things.

Sourcebans is using the same format and functions but just saved in a subfolder with a prefix (sourcebans/sb_admins.cfg, sourcebans/sb_admin_groups.cfg etc.)
So if I edit it on sourcebans with the webpanel, and I set all the perms and groups and stuff, it'll work in game for the players who need the rank, since I already did it all via webpanel?
RoseTheFox is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 03-26-2021 , 11:35   Re: [HELPOP] Sourcemod Configs
Reply With Quote #8

All the panel does is read/write from/to the database and config files so yes.
TomL. is offline
RoseTheFox
Junior Member
Join Date: Mar 2021
Old 03-26-2021 , 18:10   Re: [HELPOP] Sourcemod Configs
Reply With Quote #9

Quote:
Originally Posted by RoseTheFox View Post
So if I edit it on sourcebans with the webpanel, and I set all the perms and groups and stuff, it'll work in game for the players who need the rank, since I already did it all via webpanel?


What about using plugins/includes like custom-chatcolors (for colored ranks and such)?

Last edited by RoseTheFox; 03-26-2021 at 18:11.
RoseTheFox is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 03-26-2021 , 20:57   Re: [HELPOP] Sourcemod Configs
Reply With Quote #10

That needs to be configured in the plugin config file.
Please read my posts.

Quote:
Originally Posted by TomL. View Post
All the panel does is read/write from/to the database and config files so yes.
Quote:
Originally Posted by TomL. View Post
I mean you said you checked the documentation (admins.cfg and admin_groups.cfg) which provides you with the same informations as Bacardi posted?
Now you ask about Sourcebans when I already told you that you won't have to mess around with configs by hand but use the webpanel to change things.

Sourcebans is using the same format and functions but just saved in a subfolder with a prefix (sourcebans/sb_admins.cfg, sourcebans/sb_admin_groups.cfg etc.)

Last edited by TomL.; 03-26-2021 at 20:58.
TomL. is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:26.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode