Могут ли быть проблемы из-за установленного плагина анти-рекламы antiad.amxx??
Вот его исходник:
Код:
#include <amxmodx>
#include <amxmisc>
#include <colorchat>
#include <regex>
new Regex:re, ret;
public plugin_init() {
register_plugin("Anti-Ad", "0.3", "Mati, [SKA]JIbnEJIb, Subb98");
register_clcmd("say", "CheckMessage");
register_clcmd("say_team", "CheckMessage");
new err[32]
re = regex_compile("(?:\w+\.[a-z]{2,4}\b|(?:\s*\d+\s*\.){3})|(?
i|l)c(q|g)[ \:]*\d{5,9})", ret, err, 31, "i");
if (re!=REGEX_OK) server_print("Error: %s (%d)", err, ret);
}
public CheckMessage(id) {
if (id > 0 && id < 33 && !is_user_admin(id)) {
new text[64];
read_args(text,63);
if (strlen(text) > 4) {
new match = regex_match_c(text, re, ret);
if (match > 0) {
ColorChat(id, NORMAL, "[Anti-SPAM]");
return PLUGIN_HANDLED;
}
}
}
return PLUGIN_CONTINUE;
}
public plugin_end() {
regex_free(re);
}