more sm_nominate_exclude functionality

This commit is contained in:
BotoX
2016-12-05 18:50:44 +01:00
parent 8c27dfa931
commit 4e804288dc
3 changed files with 48 additions and 4 deletions
@@ -94,7 +94,18 @@ native bool IsMapOfficial(const char[] map);
*/
native CanNominateResult CanNominate();
native bool ExcludeMap(const char[] map);
/**
* 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.
* 1: Set or replace cooldown with cooldown value.
* 2: Set or replace cooldown with cooldown value if greater than current cooldown.
* @return true on success
*/
native bool ExcludeMap(const char[] map, int cooldown = 0, int mode = 0);
native int GetMapCooldown(const char[] map);
native int GetMapMinPlayers(const char[] map);