Update Hooks.hpp

This commit is contained in:
0TheSpy 2022-11-14 09:22:34 +03:00 committed by GitHub
parent e3851ba2a8
commit 37a342cc7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -659,7 +659,8 @@ int __fastcall hkGetPlayerMoney(void* this_, void* edx, int ent_index)
auto player = iff.g_pEntityList->GetClientEntity(ent_index); auto player = iff.g_pEntityList->GetClientEntity(ent_index);
auto localplayer = ((C_BasePlayer*)iff.g_pEntityList->GetClientEntity(iff.g_pEngineClient->GetLocalPlayer())); auto localplayer = ((C_BasePlayer*)iff.g_pEntityList->GetClientEntity(iff.g_pEngineClient->GetLocalPlayer()));
if (!*g_Options.moneyreveal || !player || !localplayer || !(*g_player_resource) || ((C_BasePlayer*)player)->GetTeam() == localplayer->GetTeam() ) return oGetPlayerMoney(this_, edx, ent_index); if (!*g_Options.moneyreveal || !player || !localplayer || !(*g_player_resource) || ((C_BasePlayer*)player)->GetTeam() == localplayer->GetTeam() )
return oGetPlayerMoney(this_, edx, ent_index);
if (player->IsDormant()) if (player->IsDormant())
{ {