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