[FilterScript] Ant-Flood v1.5
#1

Eae Galera do samp *_*
Vim aqui trazer um novo ant-flood dessa vez sem bugs '-'

Dessa vez testado , com um amigo e funfando 100%

Prints:
http://imageshack.us/g/851/samp031fo.png/



pawn Код:
#include <a_samp>

new IsFlooding[MAX_PLAYERS];
new Flooder[MAX_PLAYERS];
new szPlayerChatMsg[MAX_PLAYERS][128];

public OnGameModeInit()
{
    print("\n--------------------------------------");
    print(" FilterScript Ant-Flood BY: [LF]PlaYer");
    print("--------------------------------------\n");
    return 1;
}


public OnPlayerText(playerid, text[])
{
    if(Flooder[playerid] == 1)
    {
        SendClientMessage(playerid, -1, "{FF0000}[ERRO]{FFFFFF} Vocк estб calado e nгo pode usar o chat !");
        return 0;
    }
    IsFlooding[playerid]++;
    if(!IsPlayerAdmin(playerid))
    {
        if(strlen(text) == strlen(szPlayerChatMsg[playerid]) && !strcmp(szPlayerChatMsg[playerid], text,  false))
        {
            SendClientMessage(playerid, -1, "{FF0000}[ERRO]{FFFFFF} Nгo repita a mesma mensagem!");
            format(szPlayerChatMsg[playerid], 128, "%s", text);
            return 0;
        }
    }
    if(IsFlooding[playerid] >= 3)
    {
        IsFlooding[playerid] = 0;
        Flooder[playerid] = 1;
        SendClientMessage(playerid, -1, "{FF0000}[INFO]{FFFFFF} Vocк foi calado por 1 minuto. Motivo: Flood !");
        SetTimerEx("LiberarChat", 60000, false, "i", playerid);
        return 0;
    }
    else
    {
        SetTimerEx("SemFlood", 2000, false, "i", playerid);
    }
    return 1;
}

forward SemFlood(playerid);
public SemFlood(playerid)
{
    IsFlooding[playerid] = 0;
    return 1;
}

forward LiberarChat(playerid);
public LiberarChat(playerid)
{
    Flooder[playerid] = 0;
    SendClientMessage(playerid, -1, "Vocк foi descalado, nгo faзa mais flood !");
    return 1;
}
/* Nгo retire os creditos Criador: [LF]PlaYer  
Com Ajuda de rjjj */
Crйditos:[LF]PlaYer
rjjj

Atualizado
24/04/2012
Reply
#2

Bomzinho
Reply
#3

legalzinho... ja tem mts anti flod '--'
Reply
#4

Quote:
Originally Posted by THE_FALLEN
Посмотреть сообщение
legalzinho... ja tem mts anti flod '--'
mas o meu e unico (:
xD
Reply
#5

se for aquele que me calou ontem la no server realmente muito bom --' 10/10
Reply
#6

kkkkkkkkkkkkkkkkk s
s
s
s
s
Reply
#7

fico legal parabens rjjj(Ken Emo)
Reply
#8

Versгo 2.0 com gettickcount ao inves de timer nй?

Tб certo.
Reply
#9

10/10

Ema '-'

------

Laercio - Quer +rep ?

[LF]PlaYer - Nгo

Laercio - Ok , Fico sem Rep ):
Reply
#10

=)

MUITOS ANTI-FLOOD

VOCК Й UM MERDA 06, SEU BOSTA

ZOOA

MAN SEJA CRIATIVO, CRIE UM SISTEMA UNICO

6/10
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)