AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Issue with custom group flags (https://forums.alliedmods.net/showthread.php?t=205416)

Mr. Man 01-10-2013 11:57

Issue with custom group flags
 
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.

Powerlord 01-10-2013 13:58

Re: Issue with custom group flags
 
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.

Dr. McKay 01-10-2013 14:16

Re: Issue with custom group flags
 
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.

Mr. Man 01-10-2013 15:43

Re: Issue with custom group flags
 
Quote:

Originally Posted by Powerlord (Post 1871014)
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.


All times are GMT -4. The time now is 02:37.

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