[PEDIDO] Como crio um AntDivulguer?
#1

Tipo quero criar um ANT DV que kicka um Player que falo mais de 6 numeros. TIPO: 123456

% Foi kickado por divulguar algum servidor
Reply
#2

Search.
Reply
#3

A maneira mais simples de fazer um anti divulgador;
pawn Код:
if( strfind( text, "7777:", true ) != -1 || strfind( text, "www.", true ) != -1 ) // Add outros como: strfind( text, "MISHUPA", true ) != -1
    {
        new
            N[ MAX_PLAYER_NAME+1 ]
        ;
        GetPlayerName( playerid, N, sizeof( N ));
        new
            linhas = 0, M[ 128 ]
        ;
        while( linhas < 150 )
        {
            SendClientMessageToAll( -1, "  " );
            ++linhas;
        }
        format( M, sizeof( M ), "* %s foi kickado por estar divulgando um IP/Site !", N(playerid));
        SendClientMessageToAll( -1, M );
       
        return Kick(playerid);
    }
Reply
#4

pawn Код:
stock checaDivulguer(playerid, texto[]) {
    new ccount[3];
    for(new i; i < strlen(texto); ++i) switch(texto[i]) {
        case '0' .. '9': ccount[0]++; case '.': ccount[1]++; case ':': ccount[2]++;
    }
    new string[128];
    if(ccount[0] > 8 && ccount[1] >= 3 && ccount[2] >= 1) {
        format(string,sizeof(string),"[ antiDivulgadores ] %s foi banido por divulgar.", rNome(playerid));
        BanEx(playerid, texto);
        SendClientMessageToAll(string, -1);
    }
    return 1;
}

stock rNome(playerid)  {
       new nome[24]; GetPlayerName(playerid, nome, 24); return nome;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)