fix for amb1174 - sv_visblemaxplayers being changed even with hidden slots disabled.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401700
This commit is contained in:
parent
5c2e13b12b
commit
02f41feadf
@ -99,7 +99,10 @@ public Action:OnTimedKick(Handle:timer, any:client)
|
|||||||
|
|
||||||
KickClient(client, "%T", "Slot reserved", client);
|
KickClient(client, "%T", "Slot reserved", client);
|
||||||
|
|
||||||
SetVisibleMaxSlots(GetClientCount(false), g_MaxClients - GetConVarInt(sm_reserved_slots));
|
if (GetConVarBool(sm_hide_slots))
|
||||||
|
{
|
||||||
|
SetVisibleMaxSlots(GetClientCount(false), g_MaxClients - GetConVarInt(sm_reserved_slots));
|
||||||
|
}
|
||||||
|
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user