maybe try to check every bit and see if your lucky?
Code:
public void OnClientPutInServer(int client)
{
SDKHook(client, SDKHook_PreThinkPost, Hook_PreThinkPost);
}
public void Hook_PreThinkPost(int client)
{
for(int j = 3; j<64; j++)
{
int flags = GetEntProp(client, Prop_Send, "m_iHideHUD");
SetEntProp(client, Prop_Send, "m_iHideHUD", flags | (1<<j));
}
}
oh and btw the first two are for hiding everything so start with
3!
Code:
#define hideeverything (1<<1)
#define showhud (1<<2)
#define hidehud (1>>2)
and maybe this works for you:
Quote:
Originally Posted by Bacardi
Well, player HUD will behavior on game events, like bomb_planted, round_end and so on.
And when game_type is changed, but then player need reconnect to server.
These are more client side effect.
Here one example. For classic game play (game_type 0)
This hide clock digits, like for example when round_end. But bad side is, you also here "Round Draw"
And this event is send to players, and will not disturp other SM plugins by fake events.
PHP Code:
public void OnPluginStart() { HookEvent("round_freeze_end", round_freeze_end, EventHookMode_PostNoCopy); }
public void round_freeze_end(Event event, const char[] name, bool dontBroadcast) {
Event event = CreateEvent("round_end"); event.SetInt("winner", 1);
for(int i = 1; i <= MaxClients; i++) { if(IsClientInGame(i) && !IsFakeClient(i)) event.FireToClient(i); }
delete event; }
|