Raised This Month: $ Target: $400
 0% 

Blocking the name display


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DArKblAde
Junior Member
Join Date: Apr 2005
Old 10-26-2006 , 15:08   Blocking the name display
Reply With Quote #1

I am trying to figure out how to make so when you target someone (in "The Specialists" so im talking about HL coding) it doesn't show their name.

Does anyone by any chance know what the message is called which does this? Because i plan to block it with forwards.
DArKblAde is offline
Send a message via AIM to DArKblAde
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-26-2006 , 18:18   Re: Blocking the name display
Reply With Quote #2

If TS has the event StatusText. I think it that event but i'm not 100% sure.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
DArKblAde
Junior Member
Join Date: Apr 2005
Old 10-26-2006 , 18:24   Re: Blocking the name display
Reply With Quote #3

Alright, I'll look into that. Thanks a lot.
DArKblAde is offline
Send a message via AIM to DArKblAde
sub
Senior Member
Join Date: Nov 2004
Location: Morristown, New Jersey
Old 10-26-2006 , 18:27   Re: Blocking the name display
Reply With Quote #4

Look into the mask plugin that dotnetjunkie released, its in the various plugisn from city17 roleplay in unapproved plugins
sub is offline
Send a message via AIM to sub Send a message via MSN to sub
DArKblAde
Junior Member
Join Date: Apr 2005
Old 10-26-2006 , 20:24   Re: Blocking the name display
Reply With Quote #5

Turns out that StatusText isn't a valid event name for TS...and i looked at that city17 thing...but there is no mask plugin in it...its mentioned...but its not there
DArKblAde is offline
Send a message via AIM to DArKblAde
VEN
Veteran Member
Join Date: Jan 2005
Old 10-27-2006 , 06:39   Re: Blocking the name display
Reply With Quote #6

http://wiki.amxmodx.org/index.php/Ha...ts#StatusValue
Not sure if this is the valid TS event though.
VEN is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-27-2006 , 16:09   Re: Blocking the name display
Reply With Quote #7

It probably uses a HUD message. So capture temp entity events (23), and look for event 29 (TE_TEXTMESSAGE). Then compare the rest of the arguments to the same ones that the specialists uses for its name display, so as not to block regular HUD messages.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
DArKblAde
Junior Member
Join Date: Apr 2005
Old 10-29-2006 , 14:42   Re: Blocking the name display
Reply With Quote #8

Avalanches seems more logical...mind helping me figure out how to do that?
DArKblAde is offline
Send a message via AIM to DArKblAde
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 10-29-2006 , 18:22   Re: Blocking the name display
Reply With Quote #9

register_message

Use that to hook SVC_TEMPENTITY (23). Then use the functions listed on the page to grab info about it. The first byte will be 29 (TE_TEXTMESSAGE) if it is a text message. Here is the format for text messages:

Code:
#define TE_TEXTMESSAGE      29 // short 1.2.13 x (-1 = center) // short 1.2.13 y (-1 = center) // byte Effect 0 = fade in/fade out             // 1 is flickery credits             // 2 is write out (training room) // 4 bytes r,g,b,a color1   (text color) // 4 bytes r,g,b,a color2   (effect color) // ushort 8.8 fadein time // ushort 8.8  fadeout time // ushort 8.8 hold time // optional ushort 8.8 fxtime   (time the highlight lags behing the leading text in effect 2) // string text message      (512 chars max sz string)

Once you identify it as a TS name display, return PLUGIN_HANDLED to block it, otherwise return PLUGIN_CONTINUE.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
blackops7799
Senior Member
Join Date: May 2006
Old 10-29-2006 , 19:15   Re: Blocking the name display
Reply With Quote #10

Code:
#include <amxmodx>

public plugin_init() {
	register_plugin("nohud 1","VERSION","AUTHOR")
	register_cvar("nohud","1")
}

public client_putinserver(id) {

	if(get_cvar_num("cl_realhud") != 0) {
		set_task(3.0,"nohud1",id,_,_,"b")
	}
}

public nohud1(id) {
	client_cmd(id,"nohud 1")
	return PLUGIN_HANDLED
}
blackops7799 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 04:58.


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