ReservedSlot stop ignoring CS_TEAM_NONE (unassigned)

This commit is contained in:
BotoX 2017-02-12 18:57:37 +01:00
parent 212add6c0e
commit 0f98bf718e

View File

@ -161,7 +161,7 @@ stock bool KickValidClient(const char[] sName, const char[] sSteam32ID, AdminId
/* Spectators /* Spectators
* Sort by idle time and also kick donators if IdleTime > 30 * 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) if(!Donator || IdleTime > 30)
{ {
@ -177,7 +177,7 @@ stock bool KickValidClient(const char[] sName, const char[] sSteam32ID, AdminId
/* Dead non-donator with IdleTime > 30 /* Dead non-donator with IdleTime > 30
* Sort by idle time and don't kick donators. * 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]) if(IdleTime > 30 && IdleTime > HighestValue[1])
{ {