Ok, I need to ban fake players with names, which consist of digits. They keep flooding the server via proxies, so it's not possible to ban them all. The code below doesn't work. All players are kicked instead.
PHP Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("Antifake", "0.1", "Racoon")
}
public client_authorized(id)
{
new name[32]
read_argv(1,name,31)
if(!is_str_num(name))
{
server_cmd("kick #%d ^"F*CK YOU, fake Player!^"", get_user_userid(id))
}
}