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 +}