Raised This Month: $ Target: $400
 0% 

Remove/Disable Name Changed Message.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dragos
Senior Member
Join Date: Oct 2018
Location: Romania
Old 07-18-2021 , 03:04   Remove/Disable Name Changed Message.
Reply With Quote #1

Hello,

So I was trying to make some kind of XP system via save, load data, and I want to show the player points into the tab, but every time he is doing +1 points, his name is going to be changed, and it is very annoying, Any example of how to block that message??
__________________
sup
Dragos is offline
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 07-18-2021 , 03:34   Re: Remove/Disable Name Changed Message.
Reply With Quote #2

I suppose you use Basic Point Stats by I don't remember who in 2013.

PHP Code:
public plugin_init(){
register_message get_user_msgid("SayText"), "RemoveChatMsg");
}

public 
RemoveChatMsg(){
    static 
namemsg[64];
    
get_msg_arg_string(2namemsgsizeof(namemsg) - );
    if(!
equali(namemsg"#Cstrike_Name_Change")) // if any svc message doesnt equal to Name_Change msg
    
{
        return 
PLUGIN_CONTINUE// let it be displayed/sent.
    
}

    return 
PLUGIN_HANDLED//otherwise stop it from being called.

Simple and you don't have to hook FAKEMETA.
__________________
deprale is offline
Dragos
Senior Member
Join Date: Oct 2018
Location: Romania
Old 07-18-2021 , 03:42   Re: Remove/Disable Name Changed Message.
Reply With Quote #3

Thank you, Now I have learned something new
__________________
sup
Dragos 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 02:30.


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