Hello, I would like a plugin anti advertisement on sv, more understandable plugin to stop messages from robots that enter the sv and advertise in chat (like connect
www.svmeu.ro ... they give free admin
etc.)I found a plugin like that one but do not know where to get sma's how I want to modify itThis plugins works exactly as shown in picture : Part 1: I try to advertise / say or / sayteam
![Dołączona grafika](http://img716.imageshack.us/img716/7537/recwk.jpg)
Part 2: When I block advertising ...
www.sitetul.meu and instead tells me that advertising is prohibited on sv
![Dołączona grafika](http://img208.imageshack.us/img208/4471/rec1qf.jpg)
Sma's would look like this ... but not completely
HTML Code: #include
#include
#include
new Regex:re, ret;public plugin_init() { register_plugin("AntiReclama", "1.0", ""); 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})", 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) { client_print(id, print_chat, "Publicitatea este interzisa pe acest server!"); return PLUGIN_HANDLED; } } } return PLUGIN_CONTINUE;}public plugin_end() { regex_free(re); }Missing the part where you write the words you want to block ... of the crash if you write words with spaceThank you ... and wait for your opinions .. or completing your
Wyświetl pełny artykuł