Raised This Month: $ Target: $400
 0% 

Block Changing name.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
RaYden
Member
Join Date: Sep 2007
Old 11-30-2007 , 16:04   Re: Block Changing name.
Reply With Quote #2

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

#define PLUGIN "ANTI Change Name"
#define VERSION "0.1beta"
#define AUTHOR "F.E.A.R.&Many"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

}

public 
client_infochanged(id

    new 
newname[32],oldname[32
    
get_user_info(id"name"newname,31
    
get_user_name(id,oldname,31
    if(!
is_user_connected(id) || is_user_bot(id)) return PLUGIN_CONTINUE;
    if(!
equali(newnameoldname))
    {
        
//client_cmd(id, "name ^"%s^"",oldname);
        
set_user_info(id,"name",oldname)
        
client_print(id print_chat "[AMXX] Sorry but you are only allowed to use one name here.");
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;

This will block it indefinitely however you might wana edit the amx source to stop showing the name change event msg
RaYden 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 20:28.


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