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