added new cooldown system that tracks minutes played into database rows and sets maps on cooldown until they fallen down enough of the listing

This commit is contained in:
jenz
2026-04-19 15:26:58 +02:00
parent 01816792ae
commit f590dcc7d1
4 changed files with 312 additions and 37 deletions
@@ -108,6 +108,8 @@ native CanNominateResult CanNominate();
native bool ExcludeMap(const char[] map, int cooldown = 0, int mode = 0);
// Cooldown in seconds
native bool ExcludeMapTime(const char[] map, int cooldown = 0, int mode = 0);
// cooldown based on mysql table rows listing
native bool ExcludeMapListingPriority(const char[] map, int index);
native int GetMapCooldown(const char[] map);
native int GetMapCooldownTime(const char[] map); // in unix time
@@ -117,6 +119,7 @@ native int GetMapMaxTime(const char[] map);
native int GetMapMinPlayers(const char[] map);
native int GetMapMaxPlayers(const char[] map);
native int GetMapMinHoursAvg(const char[] map);
native int GetExcludedMapListingPriority(const char[] map);
// 0 = Okay
// >0 = Minutes till Okay