[Ajuda] AntFlood bugado!!
#2

@Edit
Achei um codigo que tinha aqui adaptei ele:

No topo:
pawn Код:
new IsFlooding[MAX_PLAYERS];
new Flooder[MAX_PLAYERS];
Em:
pawn Код:
public OnPlayerText(playerid, text[])
Adicione isso:
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;
}


forward LiberarChat(playerid);
public LiberarChat(playerid)
{
Flooder[playerid] = 0;
IsFlooding[playerid] = 0;
SendClientMessage(playerid, -1, "( ANTI - FLOOD ) Nгo faзa flood ou vocк pode ser mutado..");
return 1;
}
Crйdito: Desconhecido

Espero que ajude!
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)