About 2 years ago I posted at AMX forum
a plugin for AMX called mapchooser4. Of-course - it wasn't 100% of my code, but it was based on the default maphooser with ideas of the people they were writting some remakes of mapchooser. I've merged these ideas, added some mines - and then mapchooser4 was released.
What are the biggest differences between mapchooser4 and the default mapchooser?
1. It supports extending maps on servers playing in maxround / winlimit systems.
2. It "remembers" the history of the last 0-15 played maps ("amx_map_history" cvar) to prevent get them to the map vote menu again.
3. You can define by a cvar if You want to use mapcycle.txt, maps.ini or maps folder for the list of maps they wiil be taken into maps vote menu.
4. It lets You rock the vote for the next map.
Currently this plugin version posted here is based on code of AMX 2006.3
written/modified by KRoT@L with some my modifications they came from users requests. KRoT@L used some my ideas I've included in mapchooser4 but he also added few others - for example from Deagle's Map's map management plugin. So all credits of the plugin posted by me here belongs to KRoT@L and to the Deagle.
If amx_mapchooser_type is set to 1, players can nominate maps for the vote.
They have to type "nominate mapname" or "vote mapname" or "mapname" in the chat.
They can type "nominations" in the chat to see the list of nominated maps.
They can type "amx_listmaps2
" in console to see the maps that can be nominated if amx_nominfromfile is set to 1.
The plugin uses cvars listed below. If You want to change any of them, write them (with desired by You values) into amxx.cfg (at the bottom of that file).
<0/1/2> (default is 0):
0: random maps from amx_mapchooser_mapsfile/mapcycle/maps folder
2: the nextmap is a random map chosen from amx_mapchooser_mapsloc (no vote)
<0|1|2> (default is 0):
2: maps folder
- File used when amx_mapchooser_mapsloc is set to 0 (default filename is "maps.ini").
The file must be in amxmodx/configs/ folder.
- File used when amx_mapchooser_mapsloc is set to 0
and there is less than 10 players on the server (default filename is "maps_small.ini").
The file must be in amxmodx/configs/ folder. If it's not existing there, the regular amx_mapchooser_mapsfile
will be used also for smaller than 10 amount of players on the server.
<0/1> (default is 0):
0: players can nominate all the maps from the map folder
1: players can only nominate maps from amx_mapchooser_mapsfile/mapcycle
<num> - how many maps each player can nominate (default is 1).
<num> - how many last played maps shouldn't go to the maps vote menu (default is 5).
<time in mins.> - max. time for overall extending the map if mp_timelimit is used (default is 90).
<time in mins.> - with what time the map will be extended if mp_timelimit is used (default is 15).
<number of possible polls for extend> - how many times the map can be extended if mp_maxrounds is used (default is 3).
<number of rounds> - with what rounds number the map will be extended if mp_maxrounds is used (default is 3).
<number of possible polls for extend> - how many times the map can be extended if mp_winlimit is used (default is 3).
<number of rounds> - with what rounds number the map will be extended if mp_winlimit is used (default is 3).
<0/1> - enables/disables rockthevote option (deafult is 1).
<0.0-1.0> - rockthevote ratio (%/100 human-players they need to say rockthevote to start voting for the next map (default is 0.6).
<time in mins.> - minimum time (in minutes) required to play the map before players can use rockthevote feature (default is 10).
<time in sec.> - time to change to the new map after successful rtv and then successful voting for the new map, the map
(instead waiting until round end). Default is 10 (increasing it to 300 will effect in waiting to the round end to change the map).
These AMX X cvars - normally registered by admin.sma plugin but also checked by mapchooser4:
<time in mins.> - the time next vote can happen since last vote happened. Default is 10.
<time in secs.> - the length of time the vote is active. Default is 10.
<time in mins> - the time last vote happend (internal use).
0 - doesn't show what the admin is doing (starting any vote i.e.),
1 - shows to everybody the activity of admin, but without showing his name,
2 - shows the activity of the admin with his name.
Higher than 2 values of this cvar aren't supported by mapchooser4 plugin.
1. Nextmap plugin is required for proper working of this plugin (with amx_nextmap cvar).
2. Mapchooser4 plugin should be called from plugins.ini from the place the default mapchooser is called (just exactly instead of it - not from the place for other custom plugins).
3. mapchooser4_txt.zip contains translations only, but You need it to get correctly working the plugin!!!
26.09.2007 - updated to 3.1 version - fixed the bug with nominating maps out of maps.ini (from the "maps" folder).
21.09.2008 - updated to 3.3 version - added rock the vote option, map history is now a cvar (amx_map_history).
10.11.2008 - updated to 3.31 version - fixed the bug with freezing the server when there was low amount of maps in maps.ini/mapcycle.txt comparing to amx_map_history value.
03.03.2010 - updated to 3.41 version - added a new file for smaller amount of players on the server (defined by "amx_mapchooser_mapsfile_s" cvar), added the new cvar ("amx_rtv_map_time") to define the time between succesful map voting (after rtv) and map change, added help message for rtv, updated (ro, nl, bp) and extended translations file.
03.11.2012 - updated to 3.42 version - fixed bug with loaded other maps than they should be according settings (i.e. to be nominated from mapcycle file); added ru and sr translations.
11.11.2012 - updated to 3.42a - fixed some small problem with indentation which could do wrong things (compiler haven't see it)