This plugins blocks players with certain names from entering the server. The problem is that I can't block certain weird characters in UTF8 such as small letters or signs (ᴹ*ᴶ*ᴶ*ᴸ) (Δ). Is there a way to add these "weird" characters to the language of the plugin? Thanks!
PHP Code:
#include <amxmodx>
#define PLUGIN "Name Contain"
#define VERSION "1.0"
#define AUTHOR "Ale"
new const Contenido[][]=
{
"CS Player |",
"HOL |",
"CHIno} |"
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
new name[32];
get_user_name(id, name, charsmax(name))
for(new i = 0; i <sizeof Contenido; i++)
{
if(containi(name, Contenido[i]) != -1)
{
server_cmd("kick ^"#%d^" 'Anti TAG'", get_user_userid(id))
}
}
}