Raised This Month: $ Target: $400
 0% 

Problem with votemaps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Delirium89
Junior Member
Join Date: Jan 2009
Old 07-07-2011 , 15:49   Problem with votemaps
Reply With Quote #1

Hi,

I'm new to Sourcemod. I'm installing a clean server but i'm having problems with reserved slot permissions. I want to make it possible for them to access the votemap command but not the map command.

These are my permissions: akg

Is there an extra plugin needed to accomplish this or what am i doing wrong?
Delirium89 is offline
raghunarnindi001
Member
Join Date: Apr 2011
Old 07-08-2011 , 04:58   Re: Problem with votemaps
Reply With Quote #2

For Reservation u should give even "b" for them and "u" for votemenu (i am not sure of this one but try out)
raghunarnindi001 is offline
Delirium89
Junior Member
Join Date: Jan 2009
Old 07-08-2011 , 08:29   Re: Problem with votemaps
Reply With Quote #3

Still doesnt do the trick. Something else i can do?
Delirium89 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-08-2011 , 09:58   Re: Problem with votemaps
Reply With Quote #4

Three solutions I can think of:

  1. Add an override to the group for these users for the sm_votemap command (i.e. "sm_votemap" "allow")
  2. Override the votemap command to use the "a" permission, then remove the k and g permissions from them.
  3. Remove the g permission and see if votemap works with just the k permission (I've never been clear on if it requires either permission or both).

Personally, I'd recommend #1.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-08-2011 at 10:10.
Powerlord is offline
raghunarnindi001
Member
Join Date: Apr 2011
Old 07-08-2011 , 12:10   Re: Problem with votemaps
Reply With Quote #5

i think that votemap uses VOTING, MAP CHANGING and this is obviously uses CVAR function also.... I THINK THERE IS NO WAY TO DO THAT
raghunarnindi001 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 07-08-2011 , 12:29   Re: Problem with votemaps
Reply With Quote #6

Please, mention if you are using SourceBans !! Then this not work imemdiatelly, there where option to SourceBans to not re-write admins list... ?


admins.cfg
Code:
/**
 * USE THIS SECTION TO DECLARE DETAILED ADMIN PROPERTIES.
 *
 * Each admin should have its own "Admin" section, followed by a name.
 * The name does not have to be unique.
 *
 * Available properties: (Anything else is filtered as custom)
 *      "auth"          - REQUIRED - Auth method to use.  Built-in methods are:
 *                        "steam"  - Steam based authentication
 *                        "name"   - Name based authentication
 *                        "ip"    - IP based authentication
 *                        Anything else is treated as custom.
 *                     Note: Only one auth method is allowed per entry.
 *
 *      "identity"      - REQUIRED - Identification string, for example, a steamid or name.
 *                     Note: Only one identity is allowed per entry.
 *
 *      "password"      - Optional password to require.
 *      "group"         - Adds one group to the user's group table.
 *      "flags"         - Adds one or more flags to the user's permissions.
 *        "immunity"        - Sets the user's immunity level (0 = no immunity).
 *                          Immunity can be any value.  Admins with higher 
 *                          values cannot be targetted.  See sm_immunity_mode 
 *                          to tweak the rules.  Default value is 0.
 *
 * Example:
    "BAILOPAN"
    {
        "auth"            "steam"
        "identity"        "STEAM_0:1:16"
        "flags"            "abcdef"
    }
 *
 */
Admins
{
    "I hate Naruto"
    {
        "auth"            "steam"
        "identity"        "STEAM_0:1:16"
        "group"            "Destroy Anime"
    }
}
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
         {
            "Show Limited Ban Menu Only"                "deny"
         }
        "flags"            "abcdefghiz"

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

    "Destroy Anime"
    {
         Overrides
         {
            "sm_admin"                "allow"
            "sm_reskick_immunity"                "allow"
            "sm_votemap"            "allow"
         }
    }
}
Bacardi is offline
Delirium89
Junior Member
Join Date: Jan 2009
Old 07-13-2011 , 14:58   Re: Problem with votemaps
Reply With Quote #7

I am using sourcebans. I will try your solution right now. I'll keep you informed

Edit: It works! Thanks!

Last edited by Delirium89; 07-13-2011 at 15:05.
Delirium89 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 21:53.


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