public plugin_init() {
register_plugin("Ban IP In Name","1.0","D[i]Ma/NickName3")
register_clcmd("name", "name_change")
}
public name_change(id, level, cid) {
read_args(g_allArgs, 1023)
strtolower(g_allArgs)
remove_quotes(g_allArgs)
log_amx("User changed name to ^"%s^"",g_allArgs)
return PLUGIN_CONTINUE
}
but the public name_change is not callled
What is the problem here?
Thanks.
The "name" command is not sent to the server. You have to use client_infochanged() or similar. Search for other plugins that check the name.