This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[REQ]Force Disable HUD[CSS]


Post New Thread Reply   
 
Thread Tools Display Modes
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 01-26-2009 , 11:55   Re: [REQ]Force Disable HUD[CSS]
Reply With Quote #11

Alright, well then try this. Syntax should be in console "disablehud clientindex hudtype" to hide a certain hud element on a specific player.

I have not tested this exact code (I did test it earlier and all of them worked independently of each other) but obviously dont test it on a server that your going to be upset if it crashes.
Attached Files
File Type: sp Get Plugin or Get Source (disablehud.sp - 535 views - 1.8 KB)
__________________
CrimsonGT is offline
Sgt-Mess
Senior Member
Join Date: Dec 2007
Location: Sway Side,WA
Old 01-26-2009 , 12:20   Re: [REQ]Force Disable HUD[CSS]
Reply With Quote #12

If I'm trying this right is it "disablehud ClientName HIDEHUD_ALL"

But I must not be doing it right cause I get these errors in console.
Code:
L 01/26/2009 - 11:14:03: [SM] Native "GetEntProp" reported: Property "m_iHideHUD" not found (entity 0/worldspawn)
L 01/26/2009 - 11:14:03: [SM] Displaying call stack trace for plugin "disablehud.smx":
L 01/26/2009 - 11:14:03: [SM]   [0]  Line 41, /home/groups/sourcemod/upload_tmp/phpIfQoNx.sp::Command_DisableHud()
L 01/26/2009 - 11:14:03: rcon from "98.203.205.31:4686": command "disablehud Sgt HIDEHUD_HEALTH"
I also had to take some tf2rocket thing out the code cause the compile failed.
If you'd like to help me test it out in the server the ip is 74.86.225.237:27016
__________________
Sgt-Mess is offline
Send a message via AIM to Sgt-Mess
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 01-26-2009 , 12:39   Re: [REQ]Force Disable HUD[CSS]
Reply With Quote #13

You dont have your player index correct for one. Like I mentioned before, it should look something like "disablehud 1 hudtype". Its a really rough mockup as I dont have time to sit down and write out a full plugin at the moment, but it wont work using your name, you have to use your index.
__________________
CrimsonGT is offline
Sgt-Mess
Senior Member
Join Date: Dec 2007
Location: Sway Side,WA
Old 01-26-2009 , 13:12   Re: [REQ]Force Disable HUD[CSS]
Reply With Quote #14

Well If im not mistaken the client id is the id which can be found using the status command, so I used that and got the same errors when using clientname.

Unless I'm still not doing it right. And I'm in no rush for this plugin, I'm surprised this many people have actually posted in here so far.

But I do really appreciate the efforts in trying to help me out with this.
__________________
Sgt-Mess is offline
Send a message via AIM to Sgt-Mess
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 01-26-2009 , 13:22   Re: [REQ]Force Disable HUD[CSS]
Reply With Quote #15

Can you get me a netprops print out for CSS? All I have with me is TF2/L4D. I am guessing its m_iHideHUD for CSS as well, but it might be different. (It took me a while for TF2 because I had Hud instead of HUD and it was bugging out)
__________________
CrimsonGT is offline
Sgt-Mess
Senior Member
Join Date: Dec 2007
Location: Sway Side,WA
Old 01-26-2009 , 13:30   Re: [REQ]Force Disable HUD[CSS]
Reply With Quote #16

Quote:
Originally Posted by CrimsonGT View Post
Can you get me a netprops print out for CSS? All I have with me is TF2/L4D. I am guessing its m_iHideHUD for CSS as well, but it might be different. (It took me a while for TF2 because I had Hud instead of HUD and it was bugging out)
Yeah tell me what to do and I'll do it. Like I said i dunno any of this stuff, what do I do to find netprops print out?

If you'd like you can add me to xfire or aim

Xfire = sgtmes Aim = mes5001463232
__________________

Last edited by Sgt-Mess; 01-27-2009 at 10:24.
Sgt-Mess is offline
Send a message via AIM to Sgt-Mess
Sgt-Mess
Senior Member
Join Date: Dec 2007
Location: Sway Side,WA
Old 01-27-2009 , 10:41   Re: [REQ]Force Disable HUD[CSS]
Reply With Quote #17

Ok I got the netprops print out with sm_dump_netprops

I uploaded it to my dropbox on fpsbanana cause it was to big to attach here.

Heres the link its not a download you can view it in your browser. http://dropbox.hazardstrip.com/netprops.txt
__________________

Last edited by Sgt-Mess; 01-27-2009 at 12:48.
Sgt-Mess is offline
Send a message via AIM to Sgt-Mess
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 01-27-2009 , 19:06   Re: [REQ]Force Disable HUD[CSS]
Reply With Quote #18

Looks like the netprop is correct, ill look at the code when I get a chance and see whats wrong.
__________________
CrimsonGT is offline
Sgt-Mess
Senior Member
Join Date: Dec 2007
Location: Sway Side,WA
Old 02-02-2009 , 12:22   Re: [REQ]Force Disable HUD[CSS]
Reply With Quote #19

Just a friendly bump.
__________________
Sgt-Mess is offline
Send a message via AIM to Sgt-Mess
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 02-02-2009 , 12:44   Re: [REQ]Force Disable HUD[CSS]
Reply With Quote #20

The number in status is the userid, not the client number.
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th 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 21:18.


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