AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Change name of player don't notify (https://forums.alliedmods.net/showthread.php?t=174609)

quilhos 12-22-2011 17:01

Change name of player don't notify
 
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?

ConnorMcLeod 12-22-2011 17:32

Re: Change name of player don't notify
 
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



quilhos 12-22-2011 18:09

Re: Change name of player don't notify
 
Thanks, :D

quilhos 12-23-2011 07:59

Re: Change name of player don't notify
 
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>

joshknifer 12-23-2011 11:56

Re: Change name of player don't notify
 
skill points by name or SteamID?

fysiks 12-23-2011 12:13

Re: Change name of player don't notify
 
Quote:

Originally Posted by joshknifer (Post 1618387)
skill points by name or SteamID?

Not relevant.

joshknifer 12-23-2011 12:51

Re: Change name of player don't notify
 
What is his question then, because I dont understand.

fysiks 12-23-2011 13:07

Re: Change name of player don't notify
 
Quote:

Originally Posted by joshknifer (Post 1618427)
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).

joshknifer 12-23-2011 13:13

Re: Change name of player don't notify
 
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.

fysiks 12-23-2011 13:18

Re: Change name of player don't notify
 
Quote:

Originally Posted by joshknifer (Post 1618448)
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.


All times are GMT -4. The time now is 20:53.

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