diff --git a/src/hacks/SpyAlert.cpp b/src/hacks/SpyAlert.cpp index 9dd8af3e..93367945 100644 --- a/src/hacks/SpyAlert.cpp +++ b/src/hacks/SpyAlert.cpp @@ -37,6 +37,7 @@ void Draw() { if (CE_BYTE(ent, netvar.iLifeState)) continue; if (CE_INT(ent, netvar.iClass) != tf_class::tf_spy) continue; if (CE_INT(ent, netvar.iTeamNum) == g_pLocalPlayer->team) continue; + if (IsPlayerInvisible(ent)) continue; float distance = ent->m_flDistance; if (distance < closest_spy_distance || !closest_spy_distance) { closest_spy_distance = distance;