View Single Post
Author Message
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 07-08-2007 , 14:36   VoteManager API (votekick/ban/map/burn/gravity/etc)
Reply With Quote #1

VoteManager

By: ferret!

Description

VoteManager provides a series of natives and forwards that other plugins can use to create votes and respond to the results. VoteManager handles creating the vote menus, and forwards the winning answer out to the client plugins.

Includes vote plugins that do the votes from my Basic Votes and Extended Votes plugins:
  1. vmgr_kick (votekick)
  2. vmgr_ban (voteban)
  3. vmgr_map (votemap)
  4. vmgr_burn (voteburn)
  5. vmgr_bury (votebury)
  6. vmgr_gravity (votegravity)
  7. vmgr_alltalk (votealltalk)
  8. vmgr_friendlyfire (voteff)
Installation
  1. Place the plugins/vmgr_core.smx file inside of the addons/sourcemod/plugins/ folder.
  2. Place the translations/plugins.vmgrcore.txt file inside of the addons/sourcemod/translations/ folder.
  3. Copy the votes you want from the plugins/vmgr_votes/ folder to the addons/sourcemod/plugins/ folder.
Commands
  • vm_cancelvote
    • Cancels any vote currently in process.
  • vm_vote<name>
    • Runs the vote matching name.
Cvars
  • vm_master_limit
    • Acts as a master "percentage of votes required". When this is not set to 0, it will override all cvar's that set the percentage of a vote.
    • Default 0.0
    • Range 0.0 (0%, off) to 1.0 (100%)
  • vm_showvotes
    • When on, displays player selections as the vote is in progress.
    • Default is on. Set to 0 to disable.
  • vm_sayvotes
    • When on, anyone can say a vote's name in chat and cause it to begin. Plugins can turn this off if they don't want their vote to be available for say.
    • Default is off. Set to 1 to enable.
  • vm_limit_<name>
    • Sets how many votes are needed for <name> vote to be successful.
    • Default is 0.60 (60%)
    • Range it 0.05 (5%) to 1.0 (100%)
Changelog
  • Version 0.8 (July 8th)
    • Initial release
Bugs, Requests, Translations, or Other Issues

Please use my project area on the Allied Modders Bug Tracker to report any issues or make requests. Your login for the bug tracker is the same as your forum login. Set the category to this plugin's name.

Please read the next post for detail usage information
Attached Files
File Type: zip VoteManager.zip (57.0 KB, 1284 views)
__________________
I'm a blast from the past!

Last edited by ferret; 07-10-2007 at 09:05.
ferret is offline