From 7f5635ac0286962615945dc220393c693810000b Mon Sep 17 00:00:00 2001
From: zaCade <zaCade@hotmail.com>
Date: Mon, 3 Dec 2018 17:15:20 +0100
Subject: [PATCH] hlstatsx: add late load support.

---
 hlstatsx/scripting/hlstatsx_ze.sp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/hlstatsx/scripting/hlstatsx_ze.sp b/hlstatsx/scripting/hlstatsx_ze.sp
index 3998cf41..361ad469 100644
--- a/hlstatsx/scripting/hlstatsx_ze.sp
+++ b/hlstatsx/scripting/hlstatsx_ze.sp
@@ -55,6 +55,15 @@ public void OnPluginStart()
 	HookEvent("player_spawn", OnClientSpawn,   EventHookMode_Pre);
 	HookEvent("player_death", OnClientDeath,   EventHookMode_Pre);
 
+	for (int client = 1; client <= MaxClients; client++)
+	{
+		if (IsValidClient(client))
+		{
+			g_bIsHuman[client]  = ZR_IsClientHuman(client);
+			g_bIsZombie[client] = ZR_IsClientZombie(client);
+		}
+	}
+
 	AutoExecConfig();
 	GetTeams();
 }