[Ajuda] AntFlood bugado!!
#6

Deixe somente assim:
pawn Код:
{
if(Flooder[playerid] == 1)
{
SendClientMessage(playerid, -1, "(ANTI - FLOOD) Vocк nгo pode digitar no chat enquanto estiver mutado..");
return 0;
}
IsFlooding[playerid]++;
if(IsFlooding[playerid] >= 3)
{
IsFlooding[playerid] = 0;
Flooder[playerid] = 1;
SendClientMessage(playerid, -1, "(ANTI - FLOOD) Vocк foi mutado por 30 Segundos.");
SetTimerEx("LiberarChat", 30000, 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;
}
Apague isso do final:
pawn Код:
format(String, sizeof(String), "(id:%d): {FFFFFF}%s",playerid, text);
    SendPlayerMessageToAll(playerid, String);
    return 0;
    }
    return 1;
}
E compile !
Reply


Messages In This Thread
AntFlood bugado!! - by best95 - 01.07.2014, 16:44
Re: AntFlood bugado!! - by SpeakDS - 01.07.2014, 17:37
Re: AntFlood bugado!! - by best95 - 01.07.2014, 17:39
Re: AntFlood bugado!! - by SpeakDS - 01.07.2014, 17:53
Re: AntFlood bugado!! - by best95 - 01.07.2014, 18:42
Re: AntFlood bugado!! - by SpeakDS - 01.07.2014, 18:49

Forum Jump:


Users browsing this thread: 1 Guest(s)