AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Solved [HELPOP] Sourcemod Configs (https://forums.alliedmods.net/showthread.php?t=331534)

RoseTheFox 03-25-2021 05:11

[HELPOP] Sourcemod Configs
 
3 Attachment(s)
(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!

TomL. 03-25-2021 09:03

Re: [HELPOP] Sourcemod Configs
 
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.

RoseTheFox 03-25-2021 12:49

Re: [HELPOP] Sourcemod Configs
 
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

Bacardi 03-25-2021 13:12

Re: [HELPOP] Sourcemod Configs
 
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.

RoseTheFox 03-25-2021 13:36

Re: [HELPOP] Sourcemod Configs
 
What would be an example with Sourcebans, if you can add? Also thank you so much! I'll take a look at this!

TomL. 03-25-2021 14:27

Re: [HELPOP] Sourcemod Configs
 
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.)

RoseTheFox 03-26-2021 10:34

Re: [HELPOP] Sourcemod Configs
 
Quote:

Originally Posted by TomL. (Post 2741791)
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?

TomL. 03-26-2021 10:35

Re: [HELPOP] Sourcemod Configs
 
All the panel does is read/write from/to the database and config files so yes.

RoseTheFox 03-26-2021 17:10

Re: [HELPOP] Sourcemod Configs
 
Quote:

Originally Posted by RoseTheFox (Post 2741907)
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)?

TomL. 03-26-2021 19:57

Re: [HELPOP] Sourcemod Configs
 
That needs to be configured in the plugin config file.
Please read my posts.

Quote:

Originally Posted by TomL. (Post 2741908)
All the panel does is read/write from/to the database and config files so yes.

Quote:

Originally Posted by TomL. (Post 2741791)
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.)



All times are GMT -4. The time now is 21:07.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.