mirror of
https://github.com/0TheSpy/Seaside.git
synced 2025-01-04 00:23:31 +08:00
Update Hooks.hpp
This commit is contained in:
parent
e3851ba2a8
commit
37a342cc7e
@ -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())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user