22.04.2014, 14:58
Hello this is my anti adv system, and it works but how can i make it that it detects advertisement (such as Server IP's) too in for example "/pm"?:
Код:
if(strfind(text, ":", true) != -1) { new i_numcount, i_period, i_pos; while(text[i_pos]) { if('0' <= text[i_pos] <= '9') i_numcount ++; else if(text[i_pos] == '.') i_period ++; i_pos++; } if(i_numcount >= 8 && i_period >= 3) { new reason[128], str[560]; new Admin[24] = "Server"; format(reason,sizeof(reason),"Advertisement %s",text); BanPlayer(playerid,reason,Admin);