AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   [TF2] Donator Plugins/Flags (https://forums.alliedmods.net/showthread.php?t=183801)

Disrupted_Hunter 04-27-2012 01:32

[TF2] Donator Plugins/Flags
 
Hi guys, I'm not sure if I'm posting in the right area but I have a question about giving donators special privileges on my server. After doing research I've found out there really is no good donator plugin that has everything I want, so I'm guessing I have to get plugins I want, like the Give Weapon plug in and whatnot, and set the flag permissions to the donator's SteamID. My problem is that I don't know how to set custom flags. Can anyone help me with this problem?

Tylerst 04-27-2012 01:35

Re: [TF2] Donator Plugins/Flags
 
Yo can either use global command overrides:
http://wiki.alliedmods.net/Overridin...ss_(SourceMod)

For example in admin_overrides:
Code:

"sm_giveweapon" "o"
Then anyone with the o flag can use that command

or groups with specific command access:
http://wiki.alliedmods.net/Adding_Groups_(SourceMod)
For example in admin_groups:
Code:

Groups
{
        "Donators"
        {
                "flags"                "o"
                Overrides
                {
                        "sm_giveweapon"                "allow"
                }
               
        }
}

Then anyone with the Donators group would get the o flag and gain access to that command, even with the command retaining it's default access flag.

Disrupted_Hunter 04-27-2012 18:46

Re: [TF2] Donator Plugins/Flags
 
How do I then specify which people can access the custom flags if I use the Global Command Overrides? Would that have to be edited in another file like simple_admin.ini?

Tylerst 04-27-2012 20:49

Re: [TF2] Donator Plugins/Flags
 
Quote:

Originally Posted by Disrupted_Hunter (Post 1697715)
How do I then specify which people can access the custom flags if I use the Global Command Overrides? Would that have to be edited in another file like simple_admin.ini?

Yes, just give whoever you want your donator flag, then set the same flag in the overrides

Disrupted_Hunter 04-28-2012 03:35

Re: [TF2] Donator Plugins/Flags
 
I appreciate the help and was just wondering if you can help me a little more.

Things are not working correctly, I installed these three plugins for donators:

https://forums.alliedmods.net/showthread.php?p=705197

https://forums.alliedmods.net/showthread.php?p=1273101

https://forums.alliedmods.net/showthread.php?p=1273106

And this is what my admin_overrides look like

Code:

Overrides
{
    /**
    * By default, commands are registered with three pieces of information:
    * 1)Command Name        (for example, "csdm_enable")
    * 2)Command Group Name    (for example, "CSDM")
    * 3)Command Level        (for example, "changemap")
    *
    * You can override the default flags assigned to individual commands or command groups in this way.
    * To override a group, use the "@" character before the name.  Example:
    * Examples:
    *        "@CSDM"            "b"                // Override the CSDM group to 'b' flag
    *        "csdm_enable"    "bgi"            // Override the csdm_enable command to 'bgi' flags
    *
    * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
    * any setting that csdm_enable previously had.
    *
    * You can make a command completely public by using an empty flag string.
    */

    "sm_glowme"    "cy4g01"
    "sm giveballs"    "cy4g02"
    "sm_givepiss"    "cy4g03"
}

sm_glowme, sm_giveballs and sm_givepiss are obviously the commands and the "cy4g0x" are my flags.

I then go into my simple_admin.ini and give the proper player the flags, which looks like this:

Code:


"<SteamID of Donator>" "cy4g01" "cy4g02" "cy4g03"
//<Name of Donator> (Donator)

My problem is that everyone can access sm_glowme when it is enabled. I think that is just because that is how its meant to be and that if it is enabled then everyone can use it. But when the player (the donator) tries to input "sm_giveballs 100" in the console, the console tells him that he does not have permission. I can manually give it to him via HLSW though.

Am I doing something wrong here? I'm using the Global Command Override over the Group Specific Command Access just because it seems to be easier for me since I'm not too sure what I'm doing.

asherkin 04-28-2012 05:54

Re: [TF2] Donator Plugins/Flags
 
You should try not making up admin flags, or, hell, read the inline documentation in those files.

Disrupted_Hunter 04-28-2012 16:41

Re: [TF2] Donator Plugins/Flags
 
Quote:

Originally Posted by asherkin (Post 1697910)
You should try not making up admin flags, or, hell, read the inline documentation in those files.

Then what do I do? I've read the doc but I'm still confused. My knowledge on flags and whatnot are next to non. The only thing I know how to do is set up a server and add plugins

While looking through my files I found admin_levels. Would I have to put my custom flags in there as well?

Powerlord 04-29-2012 16:01

Re: [TF2] Donator Plugins/Flags
 
Quote:

Originally Posted by Disrupted_Hunter (Post 1698326)
Then what do I do? I've read the doc but I'm still confused. My knowledge on flags and whatnot are next to non. The only thing I know how to do is set up a server and add plugins

While looking through my files I found admin_levels. Would I have to put my custom flags in there as well?

There are 20 flags, each specified by a single letter and SourceMod doesn't support adding new ones... I went through this same issue several years ago.

The flags are these:
Code:

reservation        a        Reserved slot access.
generic        b        Generic admin; required for admins.
kick        c        Kick other players.
ban        d        Ban other players.
unban        e        Remove bans.
slay        f        Slay/harm other players.
changemap        g        Change the map or major gameplay features.
cvar        h        Change most cvars.
config        i        Execute config files.
chat        j        Special chat privileges.
vote        k        Start or create votes.
password        l        Set a password on the server.
rcon        m        Use RCON commands.
cheats        n        Change sv_cheats or use cheating commands.
root        z        Magically enables all flags.
custom1        o        Custom Group 1.
custom2        p        Custom Group 2.
custom3        q        Custom Group 3.
custom4        r        Custom Group 4.
custom5        s        Custom Group 5.
custom6        t        Custom Group 6.


Disrupted_Hunter 04-30-2012 23:07

Re: [TF2] Donator Plugins/Flags
 
Well now my admin_overrides looks like this

Code:

Overrides
{
    /**
    * By default, commands are registered with three pieces of information:
    * 1)Command Name        (for example, "csdm_enable")
    * 2)Command Group Name    (for example, "CSDM")
    * 3)Command Level        (for example, "changemap")
    *
    * You can override the default flags assigned to individual commands or command groups in this way.
    * To override a group, use the "@" character before the name.  Example:
    * Examples:
    *        "@CSDM"            "b"                // Override the CSDM group to 'b' flag
    *        "csdm_enable"    "bgi"            // Override the csdm_enable command to 'bgi' flags
    *
    * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
    * any setting that csdm_enable previously had.
    *
    * You can make a command completely public by using an empty flag string.
    */

    "sm_glowme"    "o"
    "sm giveballs"    "p"
    "sm_givepiss"    "q"
}

And my admins_simple looks like this

Code:

"<Steamid>" "opq"
//<Donator Name> (Donator)

And he is still not allowed access for sm_giveballs and sm_givepiss. I have no idea what I'm doing wrong

Would I have to give him generic admin? I'm not sure what the length of the abilities are if I do that though

TnTSCS 04-30-2012 23:38

Re: [TF2] Donator Plugins/Flags
 
RegConsoleCmd("sm_glowme", Command_GlowMe, " glow yourself...")

you can't override console commands... I only checked the one plugin, but maybe the others are using console commands instead of admin commands too.

...:: TnT Edit ::...

Just checked the other two and those are both admincommands, so override /should/ work.


All times are GMT -4. The time now is 08:09.

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