/* AMX Mod X * Nextmap Chooser Plugin * * by the AMX Mod X Development Team * originally developed by OLO * * This file is part of AMX Mod X. * * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at * your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * In addition, as a special exception, the author gives permission to * link the code of this program with the Half-Life Game Engine ("HL * Engine") and Modified Game Libraries ("MODs") developed by Valve, * L.L.C ("Valve"). You must obey the GNU General Public License in all * respects for all of the code used other than the HL Engine and MODs * from Valve. If you modify this file, you may extend this exception * to your version of the file, but you are not obligated to do so. If * you do not wish to do so, delete this exception statement from your * version. * Maps to select are in config/maps.ini file, mapcycle file or maps folder. * * 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_listmaps" in console to see the maps that can be nominated if * amx_nominfromfile is set to 1. * * Cvars: * amx_mapchooser_type <0/1/2> - 0: random maps from amx_mapchooser_mapsfile/mapcycle/maps folder * 1: nominations * 2: the nextmap is a random map chosen from amx_mapchooser_mapsloc (no vote) * amx_mapchooser_mapsloc <0|1|2> - 0: amx_mapchooser_mapsfile * 1: mapcycle * 2: maps folder * amx_mapchooser_mapsfile "maps.ini" - File used when amx_mapchooser_mapsloc is set to 0 * The file must be in amxmodx/configs/ folder. * amx_mapchooser_mapsfile_s "maps_small.ini" - File used when amx_mapchooser_mapsloc is set to 0 and there * is less than 10 players on the server * The file must be in amxmodx/configs/ folder. * amx_nominfromfile <0/1> - 0: players can nominate all the maps from the map folder * 1: players can only nominate maps from amx_mapchooser_mapsfile/mapcycle * amx_maxnominperplayer - how many maps each player can nominate * amx_map_history - how many last played maps shouldn't go to the maps vote menu * * amx_extendmap_max