Raised This Month: $ Target: $400
 0% 

CSS Hide deaths issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SEGnosis
Senior Member
Join Date: Oct 2012
Old 01-21-2013 , 02:29   CSS Hide deaths issue
Reply With Quote #1

I am using this to hide the deaths of players


PHP Code:
#define HIDEHUD_MISCSTATUS ( 1<<6 ) 

SetEntProp(clientProp_Send"m_iHideHUD"GetEntProp(clientProp_Send"m_iHideHUD") | HIDEHUD_MISCSTATUS); 
Which works, but it also hides the menus used for votes and adminship.
How can I hide the deaths, but retain the menus?

Correction:

When I set it to hide the radar. It disables the weapon selection/cycling. I am stuck with whatever primary I had and it does not change to any of the other weapons.
__________________


Last edited by SEGnosis; 01-21-2013 at 10:25.
SEGnosis is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 01-21-2013 , 12:44   Re: CSS Hide deaths issue
Reply With Quote #2

HookEvent("player_death", callback); and then "return Plugin_Handled;" in the call back. Changing 3rd arg of the call back to true and returning Plugin_Changed seems to work too.

Red
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
SEGnosis
Senior Member
Join Date: Oct 2012
Old 01-21-2013 , 18:03   Re: CSS Hide deaths issue
Reply With Quote #3

Quote:
Originally Posted by RedSword View Post
HookEvent("player_death", callback); and then "return Plugin_Handled;" in the call back. Changing 3rd arg of the call back to true and returning Plugin_Changed seems to work too.

Red
I had to set the hook to pre, but it worked like a charm. Thanks
Do you have any ideas for the radar? I hooked the user message updateradar and return handled on it. Which does block the update when no one is around, but it starts to update again if you hear someone or if you see them. I also tried setting everyone's spotted variable to false, but it does not seem to work at all (possibly because they are all on the same team).
__________________

SEGnosis is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 01-21-2013 , 18:56   Re: CSS Hide deaths issue
Reply With Quote #4

Yeah I forgot about Prehook; but it was a bit obvious it was needed IMO; sorry.

And you've read http://forums.alliedmods.net/showthr...ighlight=radar ?

Setting m_iHideHUD to the good value seems to be the way to go.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work
RedSword is offline
SEGnosis
Senior Member
Join Date: Oct 2012
Old 01-21-2013 , 22:03   Re: CSS Hide deaths issue
Reply With Quote #5

Quote:
Originally Posted by RedSword View Post
Yeah I forgot about Prehook; but it was a bit obvious it was needed IMO; sorry.

And you've read http://forums.alliedmods.net/showthr...ighlight=radar ?

Setting m_iHideHUD to the good value seems to be the way to go.
Yes I tried that method and it did not work for me. However I tried the radar_config plugin and that seemed to work fine for now
__________________

SEGnosis is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode