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

Remove Privs


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
unidox
Member
Join Date: Jul 2009
Location: Boston
Old 06-08-2010 , 22:33   Remove Privs
Reply With Quote #1

Well, I was wondering because there isint alot of customizations with the flags, if we could remove certain privileges, like sm_slay, or sm_who.

Any ideas? Thanks
unidox is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 06-08-2010 , 22:34   Re: Remove Privs
Reply With Quote #2

http://wiki.alliedmods.net/Overridin...28SourceMod%29
__________________
thetwistedpanda is offline
unidox
Member
Join Date: Jul 2009
Location: Boston
Old 06-08-2010 , 22:55   Re: Remove Privs
Reply With Quote #3

Quote:
Originally Posted by thetwistedpanda View Post
I saw that earlier, but im confused on how I would limit a certain group from using sm_who.
unidox is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-09-2010 , 13:07   Re: Remove Privs
Reply With Quote #4

Add players in group
...addons\sourcemod\configs\admins.cfg
Code:
Admins
{
    "ADMIN name"
    {
        "auth"            "steam"
        "identity"        "STEAM_0:1:12345678"
        "group"            "Full Admins"
    }

    "Little admin name"
    {
        "auth"            "steam"
        "identity"        "STEAM_0:1:12345687"
        "group"            "Group One"
    }
}
Allow/Deny commands from group
...addons\sourcemod\configs\admin_groups.cfg
Code:
Groups
{
    /**
     * Allowed properties for a group:
     *
     *   "flags"           - Flag string.
     *   "immunity"        - Immunity level number, or a group name.
     *                         If the group name is a number, prepend it with an 
     *                         '@' symbol similar to admins_simple.ini.  Users 
     *                         will only inherit the level number if it's higher 
     *                         than their current value.
     */
    "Default"
    {
        "immunity"        "1"
    }
    
    "Full Admins"
    {
        /**
         * You can override commands and command groups here.
         * Specify a command name or group and either "allow" or "deny"
         * Examples:
         *         ":CSDM"            "allow"
         *        "csdm_enable"    "deny"
         */
         Overrides
         {
         }
        "flags"            "abcdefghijklmnopqrstz"

        /* Largish number for lots of in-between values. */
        "immunity"        "99"
    }
    
    "Group One"
    {

        Overrides
        {
            "sm_who"    "deny"
            "sm_slay"    "deny"
        }
    "flags"            "abf"
    "immunity"        "10"
    }
}



*************************************** MORE ***************
You can find other threads answers..
SM generic admin



- Notice, you don't have to add flag to group if you want give to group certain command.
- You can deny command from group if they have flag what allow access to use.

Here quick sample about given commands instead flags:
Code:
...
    "Group One"
    {

        Overrides
        {
            "sm_admin"        "allow"    //Bring Admin Menu
            "sm_kick"        "allow"    //Kick players
            "sm_vote"        "allow"    //Vote command
            "sm_map"        "allow"    //change map
        }
    "immunity"        "10"
    }
...
Bacardi 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 22:04.


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