Quote:
Originally Posted by LenHard
The hides admin menu problem is probably because of the flag you're using.
For the display hud when dead, you could try hooking player_death and resetting their m_iHideHud flags.
If that didn't work you could attempt to make a repeating timer.
|
Thanks, hooking player_death worked. But HUD still shows up after campaign change, so I did a repeating timer:
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;
}
SetEntProp(client, Prop_Send, "m_iHideHUD", 64);
return Plugin_Continue;
}
It works, but I still have the problem with it hiding the admin menu. What flag I should be using to not hide the admin menu?