forked from UNLOZE/sm-plugins
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user