Raised This Month: $ Target: $400
 0% 

Problem change users nick


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
L0neW0lf
Member
Join Date: Mar 2006
Location: Denmark
Old 05-11-2006 , 12:30   Problem change users nick
Reply With Quote #1

Hi i am trying to make a plugin to make sure users have names longer than one char, but i doesnt do anything.

I cant find anything in the log about execution or anything, but amx_plugins shows it running.

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "Nick Manager" #define VERSION "1.1" #define AUTHOR "Lone Wolf @ clan-server.dk" #define change_nick "amx_nick" #define newname "Illegal Name" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)    } public client_putinserver(id) {     new name[18]     get_user_name(id, name, 17)     if (strlen(name)<2)         {         server_cmd("amx_nick %s %s",name,newname)     } }

btw i dont get any compile errors or warnings....

/LoneWolf
L0neW0lf is offline
Send a message via ICQ to L0neW0lf Send a message via MSN to L0neW0lf Send a message via Skype™ to L0neW0lf
 


Thread Tools
Display Modes

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 05:09.


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