Raised This Month: $32 Target: $400
 8% 

Issue with custom group flags


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 01-10-2013 , 11:57   Issue with custom group flags
Reply With Quote #1

Hello everyone,

I've always had issues with custom flag groups and so didn't really implement them until today. As a result, they don't work. I subdivided my donor group into regular donor and veteran donors. However, when I set the veteran donor to a custom group flag, they seem unable to use any commands I define in the override.cfg unless I give them explicit sm_<command> override.

Here are my configs (before using hard override methods instead of flags):

(Admin Groups):

Code:
Groups
{
	"Donor"
	{
		 Overrides
		 {
               "sm_aia"            "allow"
               "sm_rainbowize"     "allow"
               "sm_gimme"          "allow"
		 }

		"flags"		    "a"
		"immunity"		"80"
	}

	"Vet Donor"
	{
		 Overrides
		 {
               "sm_aia"            "allow"
               "sm_rainbowize"     "allow"
               "sm_gimme"          "allow"
		 }

		"flags"		    "o"
		"immunity"		"90"
	}
Overrides:

Code:
Overrides
{
"sm_resizeme" "ao"
"sm_resizehead" "c"
"sm_resizemyhead" ""
"sm_mypitch" ""
"sm_setpitch" "c"
"bethebuster" "ao"
"sm_trailme" "ao"
"sm_disguiseme" "ao"
}
With this setup, people in the 2nd group report they cannot use any commands in the override as indicated by an o flag override. So I had to give them sm allow access and define each command in the override bracket.

The reason I am using two different flags instead of merging them is because I wanted to display different tags to distinguish the two user groups using the Custom Chat Color plugin (with regular donors being a and vet donors being o). That also appears not to work despite my having refreshed the admin cache and Custom Chat Colors plugin.

Any thoughts? If you are curious as to what plugins I am using, you can probably tell from the overrides section.

Last edited by Mr. Man; 01-10-2013 at 12:10.
Mr. Man is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-10-2013 , 13:58   Re: Issue with custom group flags
Reply With Quote #2

Quote:
Originally Posted by Overridding Command Access (SourceMod)
Note that given an arbitrary number of flags, the client must require access to all specified flags in the string, as opposed to just any one of them.
In other words, sm_resizeme "ao" requires the user to have both flags to use it.

You were probably better off sticking with the manual command overrides.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 01-10-2013 , 14:16   Re: Issue with custom group flags
Reply With Quote #3

I would just give basic donor benefits to the "a" flag and give advanced donor benefits to the "o" flag. Then you can set a [Donor] tag on "a" and a [Veteran] tag on "o" (or whatever). Then give your donors "a" and veterans "ao".

In the Custom Chat Colors config, however, make sure you put the Veteran section above the Donor section.
__________________
Dr. McKay is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 01-10-2013 , 15:43   Re: Issue with custom group flags
Reply With Quote #4

Quote:
Originally Posted by Powerlord View Post
In other words, sm_resizeme "ao" requires the user to have both flags to use it.

You were probably better off sticking with the manual command overrides.
This was the key piece of information I was missing. Thanks! I'll make the modifications and report back if I run into any more trouble.
Mr. Man 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 12:07.


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