With this code:
PHP Code:
#pragma semicolon 1
#include <sourcemod>
public OnClientPutInServer(client)
{
CreateTimer(0.5, Timer_HUD, GetClientUserId(client), TIMER_REPEAT);
}
public Action:Timer_HUD(Handle:timer, any:data)
{
new client = GetClientOfUserId(data);
if (client == 0)
{
return Plugin_Stop;
}
if (GetClientMenu(client) != MenuSource_None)
{
return Plugin_Stop;
}
SetEntProp(client, Prop_Send, "m_iHideHUD", 64);
return Plugin_Continue;
}
It shows admin menu and HUD only when I'm dead, but also even if I close admin menu, HUD is still showing.