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

L4D Vote Manager 2


Post New Thread Reply   
 
Thread Tools Display Modes
Author
madcap
Senior Member
Join Date: Feb 2009
Plugin ID:
760
Plugin Version:
1.5.5
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1144 
    Plugin Description:
    Manage L4D vote access and enforce admin immunity.
    Old 02-09-2009 , 09:17   L4D Vote Manager 2
    Reply With Quote #1

    Features:

    Control/block access to vote types - Access to each vote type can be granted for different admin levels.

    Kick votes can obey SourceMod admin immunity - If activated anyone with a higher admin immunity level is immune from being votekicked by someone with a lower admin immunity level (or none).

    Kick votes cannot be started by spectators - I can't think of any reason a spectator should be allowed to kick, it's only abused.

    Kick votes cannot be started against a tank - I've seen too many people attempt to kick the tank just so they can take control. This is now optional and controlled by a cvar.

    Allows admins to pass/veto a vote - I have implemented the `veto` and `passvote` console command. This will set all remaining uncast votes to No or Yes respectively.

    Vote spam blocking - Can set a minimum time limit between votes and can set the admin access levels it doesn't apply to. The voting timeout resets with each map.

    Allows admins to start a custom vote - I have implemented the `custom_vote "<issue>"` command. It starts a vote using the L4D built in voting system. All connected players are allowed to vote on the issue.

    Blocks Voting Exploit - This plugin now blocks a common exploit in the voting mechanism by enforcing a 5 second wait between votes.

    Voting notification - Settings allow all player or just admins to see who called votes.

    Survival Mode Access - Special access levels for survival games allows access to votes to change the level to another survival map, restart the game or return to lobby.

    The following cvars are stored in:
    /left4dead/cfg/sourcemod/sm_plugin_votemanager2.cfg

    Access cvars (use admin access levels such as “z” or “az” or ""):
    l4d_vote_lobby_access - Access level needed to start a return to lobby votel4d_vote_difficulty_access - Access level needed to start a change difficulty votel4d_vote_level_access - Access level needed to start a change level vote l4d_vote_restart_access - Access level needed to start a restart level vote
    l4d_vote_kick_access - Access level needed to start a kick vote
    l4d_vote_veto_access - Access level needed to veto a vote
    l4d_vote_pass_access - Access level needed to pass a vote
    l4d_vote_no_timeout_access - Access level needed to not have vote timeout.
    l4d_custom_vote_access - Access level needed to do custom votes.
    l4d_vote_notify_access - Access level needed to see vote notifications. If blank all players see all messages.
    l4d_vote_surv_lobby_access - Access level needed to return to lobby in survival mode.
    l4d_vote_surv_map_access - Access level needed to change the chapter in survival mode.
    l4d_vote_surv_restart_access - Access level needed to restart in survival mode.


    Cvars that control settings:
    l4d_vote_timeout - Players must wait (timeout) this many seconds between votes. 0 = no timeout

    True/False cvars (use 1 or 0 to turn on or off):
    l4d_vote_kick_immunity - Make votekick respect admin immunity
    l4d_vote_tank_kick_immunity - Make tanks immune to vote kicking
    l4d_vote_log - Log voting data to SM logs

    The default values are that nothing is restricted or enabled except veto and passvote which requires 'z' access and kick immunity is enabled. The first time you run the plugin you will get a file ~/cfg/sourcemod/sm_plugin_votemanager2.cfg that you can configure for the exact features you want.

    Changelog:
    Code:
    1.0 - Release
    1.1 - Implemented vote spam blocking.
    1.2 - Custom vote added.
    1.3 - Exploit fix, passvote and admin only notification added.
    1.4 - Updated for survival mode.
    1.5.1 - Updated survival cvars, new version numbering system.
    1.5.2 - Default immunity to on.
    1.5.3 - Correctly handle kick votes when target is invalid.
    1.5.4 - Added a version cvar for stats tracking.
    1.5.5 - Updated notification text and added tank immunity cvar.
    Attached Files
    File Type: sp Get Plugin or Get Source (votemanager2.sp - 19664 views - 23.6 KB)

    Last edited by madcap; 09-25-2009 at 18:07. Reason: Update
    madcap is offline
    madcap
    Senior Member
    Join Date: Feb 2009
    Old 02-09-2009 , 09:22   Re: L4D Votemanager2
    Reply With Quote #2

    Feedback would be appreciated. This is my first attempt at publishing a plugin.

    Also many thanks to Devicenull, I couldn't have written this without all his wonderful examples.

    Last edited by madcap; 06-26-2009 at 00:35.
    madcap is offline
    macing
    Member
    Join Date: Jan 2009
    Old 02-09-2009 , 11:17   Re: L4D Votemanager2
    Reply With Quote #3

    I tryed, it works, i'll keep it. What more could you ask for?
    macing is offline
    Dark-Reaper
    Member
    Join Date: Jan 2009
    Old 02-09-2009 , 12:11   Re: L4D Votemanager2
    Reply With Quote #4

    I don't understand what do you ( and others authors ) mean by access level ?

    My account is the one on my servers, my letter is " z " with immunity " 99 ". Have I to put " z " for the two cvars ?

    TODO :

    Add a time restriction like in the CrimsonGT plugin.
    Dark-Reaper is offline
    madcap
    Senior Member
    Join Date: Feb 2009
    Old 02-09-2009 , 12:27   Re: L4D Votemanager2
    Reply With Quote #5

    Your access level is 'z' and your immunity level is '99'.

    So for the access cvars use the letter you want.

    So in order to restrict the vote to change campaigns you need:
    l4d_vote_level_access "z"

    If you have more than one admin access type on your surver you can just specify all of them:
    l4d_vote_level_access "abcdez"

    In order to be immune to vote kicks from people with less immunity than you do:
    l4d_vote_kick_immunity "1"


    I like to the idea of a time limit on votes but it's already implmented in another plugin. I posted a message in [L4D] Vote Spam Guard (Dead Giveaway) asking if I could include his functionality.

    Last edited by madcap; 02-09-2009 at 12:45.
    madcap is offline
    Dark-Reaper
    Member
    Join Date: Jan 2009
    Old 02-09-2009 , 12:34   Re: L4D Votemanager2
    Reply With Quote #6

    Quote:
    Originally Posted by madcap View Post
    Your access level is 'z' and your immunity level is '99'.

    So for the access cvars use the letter you want.

    So in order to restrict the vote to change campaigns you need:
    l4d_vote_level_access "z"

    If you have more than one admin access type on your surver you can just specify all of them:
    l4d_vote_level_access "abcdez"

    In order to be immune to vote kicks from people with less immunity than you do:
    l4d_vote_kick_immunity "1"


    I like to the idea of a time limit on votes but it's already implmented in another plugin. Would it be in-appropriate to add it to mine? I'm new here, not sure how that works.
    Thanks.

    About the time limit function, please add it, because I hate to have lots of plugins doing each part of a one function. And I hate vote spammers to.
    Dark-Reaper is offline
    ApocalypseDan
    Member
    Join Date: Jan 2009
    Old 02-09-2009 , 16:02   Re: L4D Vote Manager 2
    Reply With Quote #7

    Great work m8 love it works a treat i hope that will stop people voting my coop servers on to versus maps and my versus servers on to coop maps
    __________________
    ApocalypseDan is offline
    Dark-Reaper
    Member
    Join Date: Jan 2009
    Old 02-09-2009 , 16:05   Re: L4D Vote Manager 2
    Reply With Quote #8

    Quote:
    Originally Posted by ApocalypseDan View Post
    Great work m8 love it works a treat i hope that will stop people voting my coop servers on to versus maps and my versus servers on to coop maps
    You can't vote for a versus map if you are on a coop map and vice-versa.
    Dark-Reaper is offline
    madcap
    Senior Member
    Join Date: Feb 2009
    Old 02-09-2009 , 19:02   Re: L4D Vote Manager 2
    Reply With Quote #9

    Updated with a time limit to block vote spam. See first post.
    madcap is offline
    tfphoenix
    Member
    Join Date: Dec 2008
    Old 02-09-2009 , 21:41   Re: L4D Vote Manager 2
    Reply With Quote #10

    Very interested in the veto command but I only see the veto immunity level what is the command you actually type in console? Or is it a menu...?
    tfphoenix is offline
    Reply


    Thread Tools
    Display Modes

    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 18:51.


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