From 02f41feadf04cc78e31b028741e1501f4138328b Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Sun, 18 Nov 2007 06:25:33 +0000 Subject: [PATCH] fix for amb1174 - sv_visblemaxplayers being changed even with hidden slots disabled. --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401700 --- plugins/reservedslots.sp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/reservedslots.sp b/plugins/reservedslots.sp index 0715a7f3..defdb900 100644 --- a/plugins/reservedslots.sp +++ b/plugins/reservedslots.sp @@ -99,7 +99,10 @@ public Action:OnTimedKick(Handle:timer, any: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; }