Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("Spamblock", "1.0", "unknown");
register_clcmd("say", "cmd_say");
register_clcmd("say_team", "cmd_say");
}
public cmd_say(id)
{
new arg[17];
read_argv(id, arg, 16);
if(equal(arg, "[XJ]"))
{
new name[33];
get_user_name(id, name, 32);
server_cmd("amx_kick %s Xj spam", name);
}
}
That will kick player if they say [XJ] on chat... ^^