diff --git a/amxmodx/meta_api.cpp b/amxmodx/meta_api.cpp index ebcbde85..5b045bdb 100755 --- a/amxmodx/meta_api.cpp +++ b/amxmodx/meta_api.cpp @@ -554,6 +554,11 @@ void C_ClientDisconnect( edict_t *pEntity ) { RETURN_META(MRES_IGNORED); } +void C_ClientDisconnect_Post(edict_t *pEntity) +{ + pEntity->v.flags &= ~FL_FAKECLIENT; +} + void C_ClientPutInServer_Post( edict_t *pEntity ) { CPlayer *pPlayer = GET_PLAYER_POINTER(pEntity); if (!pPlayer->IsBot()) { @@ -1230,6 +1235,7 @@ C_DLLEXPORT int GetEntityAPI2_Post( DLL_FUNCTIONS *pFunctionTable, int *interfac gFunctionTable_Post.pfnClientUserInfoChanged = C_ClientUserInfoChanged_Post; gFunctionTable_Post.pfnServerActivate = C_ServerActivate_Post; gFunctionTable_Post.pfnClientConnect = C_ClientConnect_Post; + gFunctionTable_Post.pfnClientDisconnect = C_ClientDisconnect_Post; gFunctionTable_Post.pfnStartFrame = C_StartFrame_Post; gFunctionTable_Post.pfnServerDeactivate = C_ServerDeactivate_Post;