diff --git a/src/zombiereloaded.sp b/src/zombiereloaded.sp index 2c85d19..ffc108c 100644 --- a/src/zombiereloaded.sp +++ b/src/zombiereloaded.sp @@ -260,6 +260,12 @@ public OnClientPutInServer(client) */ public OnClientCookiesCached(client) { + // Check if client disconnected before cookies were done caching. + if (!IsClientConnected(client)) + { + return; + } + // Forward "OnCookiesCached" event to modules. ClassOnCookiesCached(client); WeaponsOnCookiesCached(client);