[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


Messages In This Thread
Ant-Flood v1.5 - by dPlaYer_ - 03.12.2011, 13:18
Re: Ant-Flood v1.5 - by Menininho - 03.12.2011, 13:22
Re: Ant-Flood v1.5 - by DrTHE - 03.12.2011, 13:24
Re: Ant-Flood v1.5 - by dPlaYer_ - 03.12.2011, 13:25
Re: Ant-Flood v1.5 - by nX_ - 03.12.2011, 13:45
Re: Ant-Flood v1.5 - by dPlaYer_ - 03.12.2011, 13:49
Re: Ant-Flood v1.5 - by BrunoBSF - 03.12.2011, 15:30
Re: Ant-Flood v1.5 - by steki. - 03.12.2011, 16:00
Re: Ant-Flood v1.5 - by Laercio - 03.12.2011, 16:59
Re: Ant-Flood v1.5 - by ExpressxD - 03.12.2011, 19:21

Forum Jump:


Users browsing this thread: 1 Guest(s)