Thread: HUD
View Single Post
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 11-21-2018 , 00:49   Re: HUD
Reply With Quote #4

Quote:
Originally Posted by TheWho View Post
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)); 
	}
}
up to 63? sourcepawn data types are 4 bytes (32 bits), this shouldn't work as intended
__________________
retired
shavit is offline