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

Removing votes from the admin menu.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lamphanger
Junior Member
Join Date: Dec 2010
Old 12-24-2010 , 05:09   Removing votes from the admin menu.
Reply With Quote #1

Hey,


How do you remove those votes from the admin menu such as:
FF
Changing servers gravity
etc.
Lamphanger is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-25-2010 , 06:54   Re: Removing votes from the admin menu.
Reply With Quote #2

Disable funvotes.smx and you disable also these commands:
Quote:
sm_votegravity
sm_voteburn
sm_voteslay
sm_votealltalk
sm_voteff
Disable basevotes.smx and same thing...:
Quote:
sm_votemap
sm_votekick
sm_voteban

sm_vote
There is still one command in admin menu "Vote Commands", sm_cancelvote
Disable basecommands.smx you disable also these commands:
Quote:
sm_kick
sm_map
sm_rcon
sm_cvar
sm_resetcvar
sm_execcfg
sm_who
sm_reloadadmins
sm_cancelvote
sm_revote
*edit
Another way "remove" these command from admin menu instead disable plugins.
Use admin overrides.
Don't give adminflag "k" (vote) to admins, and ether "z" (root)

or change command admin flag from admin_overrides.cfg
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_votegravity        "z"
    sm_voteburn         "z"
    sm_voteslay         "z"
    sm_votealltalk      "z"
    sm_voteff           "z"
    sm_votemap          "z"
    sm_votekick         "z"
    sm_voteban          "z"
    sm_kick             "z"
    sm_map              "z"
    sm_cancelvote       "z"
}

Last edited by Bacardi; 12-25-2010 at 07:12.
Bacardi is offline
ummja
Senior Member
Join Date: Sep 2010
Old 12-25-2010 , 15:23   Re: Removing votes from the admin menu.
Reply With Quote #3

As bacardi said, use admin overrides and set them to a different flag and don't give users this flag.

Bare in mind users with flag "z" (root access) have access TO ALL flags.
ummja is offline
stufz
Member
Join Date: Jan 2010
Old 02-24-2011 , 21:16   Re: Removing votes from the admin menu.
Reply With Quote #4

This looks to be the solution to presenting only parts of the sm admin menu to admins, but I find that without setting the flag to "z", then an admin has no access of any kind to the admin menu.

Anyone care to share a working solution ? I want partial access for some admins to the sm admin menu, while keeping total access for myself.

Disabling plugins ... disables all of that plugin's commands, I need and want a mix of access to each plugin's commands. Is that possible ?

I'm not running Sourcebans - I am running some plugins on a local L4D2 test lan, but I'm talking about keeping access to 2 funcommands - gravity and noclip - for non- z flagged admins. All other commands I've set to z flag.
__________________


Last edited by stufz; 02-24-2011 at 23:26.
stufz is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 02-24-2011 , 23:39   Re: Removing votes from the admin menu.
Reply With Quote #5

http://wiki.alliedmods.net/Overridin...ss_(SourceMod) -- Assign the votes "z" flag and it should work fine.
__________________
thetwistedpanda is offline
stufz
Member
Join Date: Jan 2010
Old 02-25-2011 , 17:07   Re: Removing votes from the admin menu.
Reply With Quote #6

I got it ! a very limited admin menu by a combination of disable foldering some plugins, recompiling funcommands, and moving some sp files out of the funcommands folder.
__________________

stufz 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 10:12.


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