From 0f98bf718e26204aff38c6fb3b5e16d070896c8e Mon Sep 17 00:00:00 2001 From: BotoX Date: Sun, 12 Feb 2017 18:57:37 +0100 Subject: [PATCH] ReservedSlot stop ignoring CS_TEAM_NONE (unassigned) --- ReservedSlot/scripting/ReservedSlot.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReservedSlot/scripting/ReservedSlot.sp b/ReservedSlot/scripting/ReservedSlot.sp index 73b30c57..f51ba43a 100644 --- a/ReservedSlot/scripting/ReservedSlot.sp +++ b/ReservedSlot/scripting/ReservedSlot.sp @@ -161,7 +161,7 @@ stock bool KickValidClient(const char[] sName, const char[] sSteam32ID, AdminId /* Spectators * Sort by idle time and also kick donators if IdleTime > 30 */ - if(GetClientTeam(client) == CS_TEAM_SPECTATOR) + if(GetClientTeam(client) <= CS_TEAM_SPECTATOR) { if(!Donator || IdleTime > 30) { @@ -177,7 +177,7 @@ stock bool KickValidClient(const char[] sName, const char[] sSteam32ID, AdminId /* Dead non-donator with IdleTime > 30 * Sort by idle time and don't kick donators. */ - if(!Donator && GetClientTeam(client) != CS_TEAM_SPECTATOR && !IsPlayerAlive(client)) + if(!Donator && GetClientTeam(client) > CS_TEAM_SPECTATOR && !IsPlayerAlive(client)) { if(IdleTime > 30 && IdleTime > HighestValue[1]) {