Hello, I've been looking a around a lot for kicking players with flag A.
But I can't get this working...
PHP Code:
#include <amxmodx>
#define PLUGIN "Admin No Tag Kick"
#define VERSION "1.0"
#define AUTHOR "Flicker"
#define TAG "[K5]"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
set_task(3.0, "CheckTagOnConnect", id)
public CheckTagOnConnect(id)
{
new Name[32]
get_user_name(id, Name, charsmax(Name))
CheckName(id, Name)
return PLUGIN_CONTINUE
}
public client_infochanged(id)
{
new newname[32]
get_user_info(id, "name", newname, charsmax(newname))
CheckName(id, newname)
}
CheckName(id, const Name[])
{
if(contain(Name, TAG) == -1)
server_cmd("kick #%d ^"You were kicked because you don't have our tag: ^"%s^"^"", get_user_userid(id), TAG)
}