Raised This Month: $ Target: $400
 0% 

Change name of player don't notify


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
quilhos
Veteran Member
Join Date: Jun 2010
Old 12-22-2011 , 17:01   Change name of player don't notify
Reply With Quote #1

I had the idea to avoid the spam stop the message in the chat that notifies you when a player changes his nick.

Is it possible to make this plugin?
quilhos is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-22-2011 , 17:32   Re: Change name of player don't notify
Reply With Quote #2

PHP Code:
/*    Formatright © 2009, ConnorMcLeod

    Dead Name Change is free software;
    you can redistribute it and/or modify it under the terms of the
    GNU General Public License as published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Dead Name Change; if not, write to the
    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.
*/

#include <amxmodx>
#include <fakemeta>

#define VERSION "0.0.1"

public plugin_init()
{
    
register_plugin("No Change Name Msg"VERSION"ConnorMcLeod")
    
register_forward(FM_ClientUserInfoChanged"ClientUserInfoChanged")
}

public 
ClientUserInfoChanged(id)
{
    new 
szOldName[32]
    
pev(idpev_netnameszOldNamecharsmax(szOldName))
    if( 
szOldName[0] && is_user_alive(id) )
    {
        new 
szNewName[32]
        
get_user_info(id"name"szNewNamecharsmax(szNewName))
        if( !
equal(szOldNameszNewName) )
        {
            
set_pev(idpev_netnameszNewName)
            return 
FMRES_HANDLED
        
}
    }
    return 
FMRES_IGNORED

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 12-22-2011 , 18:09   Re: Change name of player don't notify
Reply With Quote #3

Thanks,
quilhos is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 12-23-2011 , 07:59   Re: Change name of player don't notify
Reply With Quote #4

Connor I use skillpoints in nick of players, and this plugin change the names os players for others.

EX: My name is: Quilhos <300>
and change for: BL1ND <300>
quilhos is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-23-2011 , 11:56   Re: Change name of player don't notify
Reply With Quote #5

skill points by name or SteamID?
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-23-2011 , 12:13   Re: Change name of player don't notify
Reply With Quote #6

Quote:
Originally Posted by joshknifer View Post
skill points by name or SteamID?
Not relevant.
__________________
fysiks is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-23-2011 , 12:51   Re: Change name of player don't notify
Reply With Quote #7

What is his question then, because I dont understand.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-23-2011 , 13:07   Re: Change name of player don't notify
Reply With Quote #8

Quote:
Originally Posted by joshknifer View Post
What is his question then, because I dont understand.
He wants to hide the "Player1 has change their name to Player2" chat message. I'm assuming this is because players' points change often (which means changing the players' names often).
__________________
fysiks is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-23-2011 , 13:13   Re: Change name of player don't notify
Reply With Quote #9

I am just confused because he said that Connor's plugin hid that, but maybe because he is using a points mod it didn't? From what i read in his post, it seems like the nick names are and points are getting confused, which is why i asked how he was saving his points.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-23-2011 , 13:18   Re: Change name of player don't notify
Reply With Quote #10

Quote:
Originally Posted by joshknifer View Post
I am just confused because he said that Connor's plugin hid that, but maybe because he is using a points mod it didn't? From what i read in his post, it seems like the nick names are and points are getting confused, which is why i asked how he was saving his points.
It sounds like Connors plugin is working but seems to have caused (maybe) the points plugin to give him the wrong name. Not sure. He will likely need to post that points plugin unless Connor has another explaination.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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 20:53.


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