plugin_kwan_mapvote.sma

Abstract:
This Adminmod plugin delivers a better map vote interface 5 minutes before the end of a game (mp_timelimit).

Introduction:
plugin_kwan_mapvote.sma is a replacement for plugin_hldsld_mapvote.sma that comes packaged with Adminmod.
As well written and robust hlds_ld style voting is, it seems that some players don't vote since they
do not realize an hlds_ld style vote is in progress, or that an hlds_ld style map vote requires too many keystrokes.

The command admin_vote_map seems to alleviate these problems.  admin_vote_map appears on every client until
a vote has been cast or until voting is closed, thus fixing the ignorance problem.  In addition, in order
to vote, the client simply needs only 1 keystroke to enter a vote.  However, admin_vote_map does have
a couple of drawbacks.  admin_vote_map only allows for only 1 map to vote on and does NOT autostart.

I present this plugin to the Adminmod community.  plugin_kwan_mapvote.sma is a plugin which starts a vote
in the same format as admin_vote_map, however, a list of maps (up to 9) appears as voting options
as opposed to "1.yes 2.no" that admin_vote_map only allows.  This gives your clients a wider choice of
maps to vote on with simply 1 keystroke.

The list of maps are customizable and robust.

Instructions:

Usage - admin_map_vote2 - to kick off a map vote.

Advanced users:
If you want to autostart the vote enable admin_vote_autostart in your adminmod.cfg, also disable other auto map_voting schemes.
Place a list of maps to be voted on in your cstrike directory called map_vote2_pool.ini, one map
per line.

Newbies: See Compiling/installation instructions under GNU/Linux -or-
         See Compiling/installation instructions under Windows.

***
Compiling/installation instructions under GNU/Linux:
  -place this file in "Adminmod/scripting/myscripts".
  -execute ./compile plugin_kwan_mapvote.sma.
  -copy the binary .amx file (called plugin_kwan_mapvote.amx) into your cstrike/addons/adminmod/scripts directory.
  -open cstrike/addons/adminmod/config/plugins.ini with a text editor
  -comment out (with #) or remove the line containing plugin_hldsld_mapvote.amx
  -replace with "addons/adminmod/scrips/plugin_kwan_mapvote.amx" (without the quotes)
  -save the changes and exit the text editor
  -open cstrike/addons/adminmod/config/adminmod.cfg with a text editor
  -OPTION: if you want this vote to automatically start five minutes before the end of a game, then
          find the line containing admin_vote_autostart and ensure the value is set to 1.
  -OPTION: if you want to adjust the vote ratio for a winning map, change map_ratio to a value of your liking.
  -Create a text file in your cstrike directory called map_vote2_pool.ini and populate the file with the list of
    maps that you want in the vote list (one map per line).
  -restart your server

Compiling/installation instructions under Windows:
  -Get a real OS
  -See Compiling/installation instructions under GNU/Linux
***

Notes:
Developed under Slackware 9.1 GNU/Linux for
Adminmod 2.50.59.

Tested with Adminmod, HLGuard, and Statsme

Any questions or comments please email:
bsrslash@yahoo.com
