Raised This Month: $ Target: $400
 0% 

Block Changing Name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-29-2017 , 09:24   Re: Block Changing Name
Reply With Quote #1

Would it work?

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

public plugin_init() {
    
register_plugin("No Change Nick""0.1.2""VEN"//Edited by PurposeLess

    
register_forward(FM_ClientUserInfoChanged"ForwardUserInfoChanged")
}

public 
ForwardUserInfoChanged(idbuffer)
{
    if(!
is_user_connected(id))
        return 
FMRES_IGNORED;

    static 
name[32]
    
get_user_name(idnamesizeof(name) - 1)

    
engfunc(EngFunc_SetClientKeyValueidbuffer"name"name)
    
client_cmd(id"name ^"%s^""name)
    
set_user_info(id"name"name)
    return 
FMRES_SUPERCEDE;


Last edited by PurposeLessx; 06-29-2017 at 09:24.
PurposeLessx 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 22:54.


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