AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Blocking the name display (https://forums.alliedmods.net/showthread.php?t=46431)

DArKblAde 10-26-2006 15:08

Blocking the name display
 
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.

teame06 10-26-2006 18:18

Re: Blocking the name display
 
If TS has the event StatusText. I think it that event but i'm not 100% sure.

DArKblAde 10-26-2006 18:24

Re: Blocking the name display
 
Alright, I'll look into that. Thanks a lot.

sub 10-26-2006 18:27

Re: Blocking the name display
 
Look into the mask plugin that dotnetjunkie released, its in the various plugisn from city17 roleplay in unapproved plugins

DArKblAde 10-26-2006 20:24

Re: Blocking the name display
 
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

VEN 10-27-2006 06:39

Re: Blocking the name display
 
http://wiki.amxmodx.org/index.php/Ha...ts#StatusValue
Not sure if this is the valid TS event though.

XxAvalanchexX 10-27-2006 16:09

Re: Blocking the name display
 
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.

DArKblAde 10-29-2006 14:42

Re: Blocking the name display
 
Avalanches seems more logical...mind helping me figure out how to do that?

XxAvalanchexX 10-29-2006 18:22

Re: Blocking the name display
 
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.

blackops7799 10-29-2006 19:15

Re: Blocking the name display
 
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
}



All times are GMT -4. The time now is 04:58.

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