Raised This Month: $32 Target: $400
 8% 

Anti Name Change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mohamed null
BANNED
Join Date: Sep 2020
Location: Algeria
Old 10-17-2020 , 12:28   Anti Name Change
Reply With Quote #1

Anti Name Change By null

Players Can't change name , when someone try to change
Server will say: Sorry, You are not allowed to change name.
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "ANTI Change Name"
#define VERSION "0.1"
#define AUTHOR "null"


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, You are not allowed to change name.");
        return 
PLUGIN_HANDLED;
    }
    return 
PLUGIN_CONTINUE;

----------------------------
EnJoy !!
Attached Files
File Type: sma Get Plugin or Get Source (AntiNameChange.sma - 351 views - 766 Bytes)

Last edited by asherkin; 10-18-2020 at 18:21.
Mohamed null 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 19:44.


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