Detect Advertisement in /pm
#1

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);
Reply


Messages In This Thread
Detect Advertisement in /pm - by Blackazur - 22.04.2014, 14:58
AW: Detect Advertisement in /pm - by Blackazur - 22.04.2014, 15:26
Re: Detect Advertisement in /pm - by Kyance - 22.04.2014, 15:50

Forum Jump:


Users browsing this thread: 1 Guest(s)