Quote:
Originally Posted by SpannerSpammer
Joce93, the default HL disconnect message is sent via a SayText MSG.
Try hooking that before trying TextMsg. If that doesn't work then try hooking
different messages until you find the right one: HudText , HudTextPro etc.
_____________________________________________ _________________________
Shattered Heart Lynx. The default HL connect message is sent via TextMsg,
hook that and use set_msg_arg_string() to modify it.
Now bear in mind that different MODs might use different messages than the default HL
ones to send connect/disconnect messages.
|
Can you help me for the script ? I used abdobiskra's code replacing "TextMsg" by "SayText" but it does not work:
PHP Code:
#include <amxmodx>
public plugin_init() {
register_message(get_user_msgid("SayText"), "msgSayText");
}
public msgSayText(msgid, msgdest, msgent) {
new sz[80]
get_msg_arg_string(2, sz, 79)
if(containi(sz, "example message") != -1)
return PLUGIN_HANDLED
return PLUGIN_CONTINUE
}