Fixed client not connected error in class module.
This commit is contained in:
parent
68d7476f0e
commit
ec1d55a323
|
@ -260,6 +260,12 @@ public OnClientPutInServer(client)
|
||||||
*/
|
*/
|
||||||
public OnClientCookiesCached(client)
|
public OnClientCookiesCached(client)
|
||||||
{
|
{
|
||||||
|
// Check if client disconnected before cookies were done caching.
|
||||||
|
if (!IsClientConnected(client))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Forward "OnCookiesCached" event to modules.
|
// Forward "OnCookiesCached" event to modules.
|
||||||
ClassOnCookiesCached(client);
|
ClassOnCookiesCached(client);
|
||||||
WeaponsOnCookiesCached(client);
|
WeaponsOnCookiesCached(client);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user