ReservedSlot: dont kick active players
This commit is contained in:
		
							parent
							
								
									0d6b73d782
								
							
						
					
					
						commit
						ec05ea8524
					
				@ -189,7 +189,7 @@ stock bool KickValidClient(const char[] sName, const char[] sSteam32ID, AdminId
 | 
			
		||||
 | 
			
		||||
		/* Alive non-donator with IdleTime > 30
 | 
			
		||||
		 * Sort by idle time and don't kick donators and item owners.
 | 
			
		||||
		 */
 | 
			
		||||
		 *
 | 
			
		||||
		if(!Donator && IsPlayerAlive(client) && !HasItem)
 | 
			
		||||
		{
 | 
			
		||||
			if(IdleTime > 30 && IdleTime > HighestValue[2])
 | 
			
		||||
@ -198,7 +198,7 @@ stock bool KickValidClient(const char[] sName, const char[] sSteam32ID, AdminId
 | 
			
		||||
				HighestValueClient[2] = client;
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		/* Alive non-donator with IdleTime > 30 */
 | 
			
		||||
		* Alive non-donator with IdleTime > 30 */
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Check if any condition was met in the correct order and perform kick
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user