Raised This Month: $12 Target: $400
 3% 

Adding additional custom flags to Sourcemod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kjaer
Senior Member
Join Date: Oct 2009
Location: Canada
Old 04-16-2012 , 23:03   Adding additional custom flags to Sourcemod
Reply With Quote #1

I was wondering, is it possible to add addtional custom flags to sourcemod through /config/admin_levels.cfg or even possible at all? Any help would be nice.
__________________
If you require server assistance add me!
Kjaer is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-17-2012 , 08:08   Re: Adding additional custom flags to Sourcemod
Reply With Quote #2

Not really.
Bacardi is offline
x00
Member
Join Date: Sep 2011
Old 04-17-2012 , 08:27   Re: Adding additional custom flags to Sourcemod
Reply With Quote #3

Quote:
Originally Posted by Kjaer View Post
I was wondering, is it possible to add addtional custom flags to sourcemod through /config/admin_levels.cfg or even possible at all? Any help would be nice.
Maybe, take a look at this.
Get the complete source here.

-x00
__________________
꞉⋮꞉
x00 is offline
marty3
Junior Member
Join Date: Jan 2010
Old 07-04-2012 , 07:59   Re: Adding additional custom flags to Sourcemod
Reply With Quote #4

I search too
marty3 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-04-2012 , 12:01   Re: Adding additional custom flags to Sourcemod
Reply With Quote #5

You can't add new custom flags, but you can use admin groups and admin group overrides to create the same effect.
psychonic is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 07-04-2012 , 18:12   Re: Adding additional custom flags to Sourcemod
Reply With Quote #6

In this case I find the admin system in SourceMod somewhat limited. It would probably be better with named permissions in a hierarchy. A permission entry could look something like this:
Code:
"Permissions"
{
    "MyPermissionGroup"
    {
        "myPlugin.theFeature.anAction" "deny"
    }
}
Then plugins would be able to define custom permissions in this global namespace. Basically a similar system as Bukkit Permissions in Minecraft where you get full control of any feature in any plugin.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)

Last edited by rhelgeby; 07-04-2012 at 18:12.
rhelgeby is offline
Send a message via MSN to rhelgeby
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-04-2012 , 18:48   Re: Adding additional custom flags to Sourcemod
Reply With Quote #7

Minus the hierarchy (although there is grouping), that's exactly what you can do with the extended system.
People get confused enough as it is using just basic overrides.
__________________
asherkin is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 07-04-2012 , 19:23   Re: Adding additional custom flags to Sourcemod
Reply With Quote #8

I really don't like the Bukkit style of permissions. When I install a plugin, I want to be able to just override its commands to a flag or two. I don't want to have to go into my permissions file and add an entry for each individual group that I want to have access.
__________________
Dr. McKay is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-04-2012 , 23:18   Re: Adding additional custom flags to Sourcemod
Reply With Quote #9

Quote:
Originally Posted by Dr. McKay View Post
I really don't like the Bukkit style of permissions. When I install a plugin, I want to be able to just override its commands to a flag or two. I don't want to have to go into my permissions file and add an entry for each individual group that I want to have access.
The six provided custom flags are meant for that kind of easiness. Group overrides are then also available if you need something beyond that.

Last edited by psychonic; 07-05-2012 at 07:03. Reason: lol
psychonic is offline
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 07-05-2012 , 03:25   Re: Adding additional custom flags to Sourcemod
Reply With Quote #10

I never got group overrides to work. (Also heard from some people that they never got it working either)
I don't know if this is a bug with SQL admins (pretty sure it's not as I tested with flatfile as well) or if it's a bug with the command grouping feature of Sourcemod (might be this).
minimoney1 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 04:04.


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