Fix Showing HUD In Spec Mode Firstperson

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
new iClientToShow = client;
new t;
if (IsClientObserver(client))
{
new observerMode = GetEntProp(client, Prop_Send, "m_iObserverMode");
if (observerMode == 4 || observerMode == 3)
{
t = GetEntPropEnt(client, Prop_Send, "m_hObserverTarget");
if (t > 0 && IsClientInGame(t) && !IsFakeClient(t))
{
iClientToShow = t;
}
}
}