Raised This Month: $ Target: $400
 0% 

Stop ingame nickname change.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 02-27-2014 , 06:12   Re: Stop ingame nickname change.
Reply With Quote #7

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN_NAME "No Name Change"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "VEN"

new const g_reason[] = "[NNC] Sorry, name change isn't allowed on this server"

new const g_name[] = "name"

public plugin_init() {
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSIONPLUGIN_AUTHOR)
    
register_forward(FM_ClientUserInfoChanged"fwClientUserInfoChanged")
}

public 
fwClientUserInfoChanged(idbuffer) {
    if (!
is_user_connected(id))
        return 
FMRES_IGNORED

    
static name[32], val[32]
    
get_user_name(idnamesizeof name 1)
    
engfunc(EngFunc_InfoKeyValuebufferg_namevalsizeof val 1)
    if (
equal(valname))
        return 
FMRES_IGNORED

    engfunc
(EngFunc_SetClientKeyValueidbufferg_namename)
    
console_print(id"%s"g_reason)

    return 
FMRES_SUPERCEDE

UchihaSkills 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 23:58.


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