Browse Source

Check for connecting clients

Connecting clients aren't counted in `IsClientConnected()`.
nosoop 6 years ago
parent
commit
cdec173b69
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripting/csrd_uptime_limiter.sp

+ 2 - 2
scripting/csrd_uptime_limiter.sp

@@ -15,7 +15,7 @@
 
 #pragma newdecls required
 
-#define PLUGIN_VERSION "0.2.0"
+#define PLUGIN_VERSION "0.2.1"
 public Plugin myinfo = {
     name = "[CSRD] Uptime Limiter",
     author = "nosoop",
@@ -81,7 +81,7 @@ bool IsHumanConnected() {
 			return true;
 		}
 	}
-	return false;
+	return (GetClientCount(false) - GetClientCount(true)) != 0;
 }
 
 /**