xs_freevisibleslots
- Синтаксис
-
stock bool:xs_freevisibleslots(num) { new maxplayers = get_cvar_num("sv_visiblemaxplayers"); if (maxplayers <= 0) maxplayers = MaxClients; return (get_playersnum(1) <= maxplayers-num) ? true : false; }
Переменная | Описание |
---|---|
num |
The number of slots to check. |
- Описание
- Checks whether there are at least @num free visible slots.
- Возвращает
- true if there are at least that many free, false otherwise.