From 6c237d0baad686ca2a4cf8461490b61aedead3fc Mon Sep 17 00:00:00 2001 From: 0TheSpy <5511c282@opayq.com> Date: Mon, 14 Nov 2022 00:21:42 +0300 Subject: [PATCH] Update Hooks.hpp --- SpyCustom/Hooks.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpyCustom/Hooks.hpp b/SpyCustom/Hooks.hpp index d2dab70..7657041 100644 --- a/SpyCustom/Hooks.hpp +++ b/SpyCustom/Hooks.hpp @@ -515,7 +515,7 @@ bool __stdcall hkCreateMove(float frame_time, CUserCmd* pCmd) iff.g_pClient->DispatchUserMessage(CS_UM_ServerRankRevealAll, 0, 0, nullptr); - if (g_Options.speclist && interval) + if (g_Options.speclist && interval && localplayer->GetHealth() > 0) { string spectatorList = "Spectating you:\n \n"; bool isSomeoneSpectatingYou = false; @@ -675,4 +675,4 @@ int __fastcall hkGetPlayerMoney(void* this_, void* edx, int ent_index) // printfdbg("NotDormant %d Money %d\n", ent_index, ((C_BasePlayer*)player)->GetAccount()); return ((C_BasePlayer*)player)->GetAccount(); } -} \ No newline at end of file +}