Raised This Month: $ Target: $400
 0% 

EXPERIENCED PLUGIN MAKERS PLZ SEE THIS V2.0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 09-05-2004 , 17:29  
Reply With Quote #5

Code:
// Name Changer V0.1 by Leo [deBUG] // // Usage - amx_namechange "nick or userid" // // This can be used on players who have names which are insulting or disgusting. #include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Name Changer","0.1","Leo [deBUG]")     register_concmd("amx_changename","cmd_change_name",ADMIN_KICK," Change the names of players with explicit names") } public cmd_change_name(id,level,cid) {     if (!cmd_access(id,level,cid,2)) {         console_print(id,"[AMXx] You do not have access to this command.")         return PLUGIN_HANDLED     }     if (read_argc() == 0) {         console_print(id,"[AMXx] You must specify a user for this command.")         return PLUGIN_HANDLED     }     new user[32], uid     read_argv(1,user,32)     uid = find_player("bh",user)     if (uid == 0) {         console_print(id,"[AMXx] Invalid user ID, please retry.")         return PLUGIN_HANDLED     }     new name2[32]     get_user_name(player,name2,31)     console_print(id,"[AMXx] Name Change successful")     client_cmd(uid,"name I_Need_To_Change_My_Name")     client_print(0,print_chat,"[AMXx] Admin: %s, you need to change your name, please.",name2)     return PLUGIN_HANDLED }
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
 



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 17:11.


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