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(id, pev_netname, szOldName, charsmax(szOldName))
if( szOldName[0] && is_user_alive(id) )
{
new szNewName[32]
get_user_info(id, "name", szNewName, charsmax(szNewName))
if( !equal(szOldName, szNewName) )
{
set_pev(id, pev_netname, szNewName)
return FMRES_HANDLED
}
}
return FMRES_IGNORED
}
__________________