Sorry for my English.
I'm from Russia
And I need help, because I can't get it with .Ru Internet.
I need a plugin which will block client changing name and kick him for that.
I have some examples:
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "ANTI Change Name"
#define VERSION "0.1beta"
#define AUTHOR "F.E.A.R.&Many"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_infochanged(id)
{
new newname[32],oldname[32]
get_user_info(id, "name", newname,31)
get_user_name(id,oldname,31)
if(!equali(newname, oldname))
{
client_cmd(id, "disconnect");
client_print(id , print_chat , "[AMXX] Sorry but you are only allowed to use one name here.");
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
This plugin works. -> Player change his name and then he's kicked.
But I need to block changing name. block absolutely.
I will answer to all your questions. Help me please.
Thanks. I suggest you understand me.