Raised This Month: $ Target: $400
 0% 

"cvars" won't change on Admin Groups?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lolwutman
Member
Join Date: Jul 2012
Old 09-01-2016 , 16:29   "cvars" won't change on Admin Groups?
Reply With Quote #1

I've made an "Admin Group" and I want it so it has its own 'cvars', here;

Code:
"Groups"
{
    "VIP"
    {
        "flags"            "ajk"
        "immunity"        "1"
        "sm_saysounds_sound_limit"    "0"
        "sm_saysounds_sound_delay"    "3.0"
        "sm_saysounds_admin_delay"    "3.0"
        "sm_saysounds_donor_delay"    "3.0"
        "sm_saysounds_exclude"    "0"
        
        "Overrides"
        {
            "@CSDM"        "deny"
            "sm_allrates"    "allow"
            "sm_votekick"    "allow"
            "sm_voteban"    "allow"
            "sm_showrules"    "allow"
        }
    }
}
Is this just not possible or am I doing something wrong?
sm_saysounds commands don't work.
Lolwutman is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-01-2016 , 16:41   Re: "cvars" won't change on Admin Groups?
Reply With Quote #2

Not possible use cvars in admin overrides.
__________________
Do not Private Message @me
Bacardi is offline
Lolwutman
Member
Join Date: Jul 2012
Old 09-01-2016 , 16:52   Re: "cvars" won't change on Admin Groups?
Reply With Quote #3

How would I do that? I know it's "admin_overrides.cfg" but I don't see how to do it.
Lolwutman is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-01-2016 , 17:05   Re: "cvars" won't change on Admin Groups?
Reply With Quote #4

What purpose is with this?
Do you wan't different cvar settings to each admin group?
__________________
Do not Private Message @me
Bacardi is offline
Lolwutman
Member
Join Date: Jul 2012
Old 09-01-2016 , 17:08   Re: "cvars" won't change on Admin Groups?
Reply With Quote #5

Yeah, I want it so when you're in the group VIP, "sm_saysounds_sound_delay" will be set to "3.0" for that group instead of "10.0"
Lolwutman is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 09-01-2016 , 17:30   Re: "cvars" won't change on Admin Groups?
Reply With Quote #6

It's not possible due to how cvars work
__________________
WildCard65 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 09-01-2016 , 17:45   Re: "cvars" won't change on Admin Groups?
Reply With Quote #7

You will need to rewrite the plugin that provides sm_saysounds_sound_delay to allow different settings for each player. This will involve it not being a cvar anymore.
__________________
ddhoward is offline
Lolwutman
Member
Join Date: Jul 2012
Old 09-02-2016 , 02:04   Re: "cvars" won't change on Admin Groups?
Reply With Quote #8

Well, at least I know what to do.

Thanks, I'll try it out.
Lolwutman is offline
Reply



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 05:06.


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