#include < amxmodx >
#define REASON "Вы кикнуты за спам."
static spam[][] = {
"vk.com/pizdec"
}
public plugin_init(){
register_plugin("AntiSpam in Chat", "1.3.3.7", "PAffAEJIkA :3");
register_clcmd("say", "say");
register_clcmd("say_team", "say");
}
public say(id){
new msg[192];
read_args(msg, charsmax(msg));
remove_quotes(msg);
trim(msg);
if(!msg[0])
return PLUGIN_CONTINUE;
for (new i; i < sizeof spam; i ++){
if(containi(msg, spam[i]) != -1){
server_cmd("kick #%d %s", get_user_userid(id), REASON);
return PLUGIN_HANDLED;
}
}
return PLUGIN_CONTINUE;
}