From 1e1cd1b2ace92ebf1085d4a85c0e3831f1da6bf8 Mon Sep 17 00:00:00 2001 From: zaCade Date: Tue, 11 Jun 2019 19:42:40 +0200 Subject: [PATCH] Add late load support. --- entWatch4/scripting/entWatch-restrictions.sp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/entWatch4/scripting/entWatch-restrictions.sp b/entWatch4/scripting/entWatch-restrictions.sp index 3707541c..32282223 100644 --- a/entWatch4/scripting/entWatch-restrictions.sp +++ b/entWatch4/scripting/entWatch-restrictions.sp @@ -80,6 +80,15 @@ public void OnPluginStart() RegConsoleCmd("sm_restrictions", Command_DisplayRestrictions); RegConsoleCmd("sm_status", Command_DisplayStatus); + + for (int client = 1; client <= MaxClients; client++) + { + if (IsClientConnected(client) + OnClientPutInServer(client); + + if (AreClientCookiesCached(client) + OnClientCookiesCached(client); + } } //----------------------------------------------------------------------------------------------------