Raised This Month: $51 Target: $400
 12% 

Admin Change Name


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:         
lix
New Member
Join Date: Apr 2006
Old 04-21-2006 , 06:57   Admin Change Name
Reply With Quote #1

This plugin lets you change the username of players. I saw someone try this, but they failed. I'm no pro, but it works.

Usage: amx_change_name <authid, nick> <new name>
Examples:
amx_change_name Lix Noob - Changes the player Lix's name to Noob

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "Admin Change Name" #define VERSION "1.0" #define AUTHOR "Lix" /* * Usage: amx_change_name <authid, nick> <new name> * Examples: * amx_change_name Lix Noob            - Changes the player Lix's name to Noob */ public admin_change_name(id,level,cid) {     if (!cmd_access(id,level,cid,3))         return PLUGIN_HANDLED             // From name     new arg[32]     // To name     new arg2[32]         read_argv(1,arg,31)     read_argv(2,arg2,31)         new player = cmd_target(id,arg,3)     if (!player)         return PLUGIN_HANDLED     set_user_name(id, arg2)         return PLUGIN_HANDLED  } public plugin_init() {      register_plugin("Admin Change Name","1.0","Lix")      register_concmd("amx_change_name","admin_change_name",ADMIN_LEVEL_A,"<authid, nick> <new nick>")      return PLUGIN_CONTINUE  } public set_user_name(id,name[]) set_user_info(id,"name",name)
Attached Files
File Type: sma Get Plugin or Get Source (amx_change_name.sma - 340 views - 4.6 KB)
lix is offline
6pack
BANNED
Join Date: Mar 2006
Location: Cedarhurst, Long Island
Old 04-21-2006 , 07:24  
Reply With Quote #2

Ummmm

amx_nick is already in amxx?
6pack is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 04-21-2006 , 07:35  
Reply With Quote #3

Quote:
Originally Posted by 6pack
Ummmm

amx_nick is already in amxx?
agreed. Moved to unnapproved.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
lix
New Member
Join Date: Apr 2006
Old 04-21-2006 , 12:24  
Reply With Quote #4

I didn't know, i switched from amx to amxx last night.. sorry
lix 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 12:34.


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