Raised This Month: $ Target: $400
 0% 

[REQ] Change/delete "Player has left the game"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Joce93
Senior Member
Join Date: Feb 2016
Old 05-19-2016 , 14:01   Re: [REQ] Change/delete "Player has left the game"
Reply With Quote #7

Quote:
Originally Posted by SpannerSpammer View Post
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(msgidmsgdestmsgent) {
    
        new 
sz[80]
        
get_msg_arg_string(2sz79)
        if(
containi(sz"example message") != -1)
                return 
PLUGIN_HANDLED
        
return PLUGIN_CONTINUE

Joce93 is offline
 



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 18:33.


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