[Ajuda] Anti-Flood nгo quer funciona com o Anti-Palavroes :(
#1

Olб galera do forum, estou com um problema, quando eu digito qualquer palavra no chat exemplo: LOW 3 vezes em seguida o anti-flood alertar o jogador que estб cometendo flood mais quando digito algum palavrгo 3 vezes em seguida no chat nгo alertar o jogador.

pawn Код:
FloodChat[playerid] ++;
    TempoFlood[playerid] = SetTimerEx("RemoverFlood",3000,false,"i",playerid);
    if(FloodChat[playerid] == 2) return SendClientMessage(playerid, -1, "{FF0000}[Anti-Flood Chat]: {FFFFFF}Digite a mensagem novamente apуs 2 segundos.");
    if(FloodChat[playerid] == 3) return SendClientMessage(playerid, -1, "{FF0000}[Anti-Flood Chat]: {FFFFFF}Segundo Aviso!, Digite a mensagem novamente apуs 2 segundos");
    if(FloodChat[playerid] == 4)
    {
        format(String, sizeof(String), "{FF0000}[Anti-Flood Chat]: {FFFFFF}O jogador {FF0000}%s {FFFFFF}foi kickado por Flood", Nome(playerid));
        SendClientMessageToAll(-1, String);
        SetTimer("KickarRapido",100,false);
        return 0;
    }
//|=============================================================================|
    format(String, 128, "%s", text);
    if(BoquinhaSuja <= strlen(String))
    {
        for(new p = 0; p < MAX_PALAVROES; p++)
        {
            VerPalavra = strfind(String, Palavroes[p], true, BoquinhaSuja);
            if(VerPalavra!= -1 && VerPalavra == BoquinhaSuja)
            {
                strdel(String, VerPalavra, VerPalavra+strlen(Palavroes[p]));
                for(new PPro = 0; PPro < strlen(Palavroes[p]); PPro++)
                {
                   strcat(Estrelinha,"*");
                }
                strins(String, Estrelinha, VerPalavra, 256);
                strdel(Estrelinha, 0, strlen(Estrelinha));
                SendPlayerMessageToAll(playerid, String);
                return 0;
            }
        }
        BoquinhaSuja++;
    }
Reply
#2

Coloca eles em filterscript..
Reply
#3

Nгo funfo
Reply
#4

Anti Plavrгo:
https://sampforum.blast.hk/showthread.php?tid=194050

Anti Flood:
https://sampforum.blast.hk/showthread.php?tid=301181

Tenta por esses
Reply
#5

Nгo Funfo Tambйm ta osso°
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)