mapchooser_extended: mapchooser_extended: add reserved/random nomination slots (by Botox)

This commit is contained in:
neon
2018-08-10 12:43:49 +02:00
parent 679ba49402
commit 3c8d8c99f8
4 changed files with 728 additions and 163 deletions
@@ -12,7 +12,7 @@
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, version 3.0, as published by the
* Free Software Foundation.
*
*
* 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
@@ -52,7 +52,7 @@ enum CanNominateResult
/**
* Called whenever warning timer starts
*
*
*/
forward void OnMapVoteWarningStart();
@@ -68,7 +68,7 @@ forward void OnMapVoteWarningTick(int time);
/**
* Called whenever vote starts
*
*
* @deprecated Will be removed in MapChooser 1.8. Use OnMapVoteStarted instead.
*/
forward void OnMapVoteStart();
@@ -81,7 +81,7 @@ forward void OnMapVoteEnd(const char[] map);
/**
* Is a map on the current game's official list?
* This should be treated as informative only.
*
*
* @param map Name of map to check
* @return true if it's on the list of official maps for this game
*/
@@ -89,7 +89,7 @@ native bool IsMapOfficial(const char[] map);
/**
* Is nominate allowed?
*
*
* @return A CanNominateResult corresponding to whether a vote is allowed or not
*/
native CanNominateResult CanNominate();
@@ -97,7 +97,7 @@ native CanNominateResult CanNominate();
/**
* Add map to nomination exclude list.
* Known as cooldown.
*
*
* @param map Name of map
* @param cooldown Cooldown, interpretation depends on mode.
* @param mode 0: Normal, use cooldown value from config/default.
@@ -122,15 +122,15 @@ native int GetMapTimeRestriction(const char[] map);
// >0 = More than MaxPlayers
native int GetMapPlayerRestriction(const char[] map);
// <0 = No group
// >=0 = Group _max
native int GetMapGroup(const char[] map, char[] group, int size);
// <=0 = No group
// >0 = Groups found
native int GetMapGroups(const char[] map, int[] groups, int size);
// <0 = No restriction
// >=0 = Group _max -> Group full
native int GetMapGroupRestriction(const char[] map, int client = 0);
public SharedPlugin __pl_mapchooser_extended =
public SharedPlugin __pl_mapchooser_extended =
{
name = "mapchooser",
file = "mapchooser_extended.smx",