mapchooser_extended: new feature: map group restrictions

This commit is contained in:
BotoX
2018-03-20 01:06:26 +01:00
parent 229fb7b8cd
commit 3d24fb83e0
5 changed files with 192 additions and 11 deletions
@@ -112,9 +112,24 @@ native int GetMapMinTime(const char[] map);
native int GetMapMaxTime(const char[] map);
native int GetMapMinPlayers(const char[] map);
native int GetMapMaxPlayers(const char[] map);
// 0 = Okay
// >0 = Minutes till Okay
native int GetMapTimeRestriction(const char[] map);
// <0 = Less than MinPlayers
// 0 = Okay
// >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 restriction
// >=0 = Group _max -> Group full
native int GetMapGroupRestriction(const char[] map, int client = 0);
public SharedPlugin __pl_mapchooser_extended =
{
name = "mapchooser",