[PEDIDO] Anti-Flood Comandos +Rep.
#6

Final do gamemode:
pawn Код:
stock IsPlayerFlooding(pid, maxtime)
{
    static Flooding[MAX_PLAYERS char];
    if(tickcount() - Flooding{pid} < maxtime) return Flooding{pid} = tickcount(), true;
    return Flooding{pid} = tickcount(), false;
}
No OnPlayerCommandText(topo)
pawn Код:
if(IsPlayerFlooding(playerid, 5000)) return SendClientMessage(playerid, -1,"Frodanu (5s)");
- Testado.
Reply


Messages In This Thread
[PEDIDO] Anti-Flood Comandos +Rep. - by Gustavo_z - 18.03.2012, 01:46
Re: [PEDIDO] Anti-Flood Comandos +Rep. - by Gustavo_z - 18.03.2012, 23:45
Re: [PEDIDO] Anti-Flood Comandos +Rep. - by Ricop522 - 19.03.2012, 02:19
Re: [PEDIDO] Anti-Flood Comandos +Rep. - by steeldark - 19.03.2012, 02:27
Re: [PEDIDO] Anti-Flood Comandos +Rep. - by GuiihCamargo - 19.03.2012, 03:33
Re: [PEDIDO] Anti-Flood Comandos +Rep. - by DarkScripter - 19.03.2012, 03:40
Re: [PEDIDO] Anti-Flood Comandos +Rep. - by Gustavo_z - 19.03.2012, 20:38
Re: [PEDIDO] Anti-Flood Comandos +Rep. - by Gustavo_z - 24.03.2012, 14:54
Re: [PEDIDO] Anti-Flood Comandos +Rep. - by rjjj - 24.03.2012, 15:34
Re: [PEDIDO] Anti-Flood Comandos +Rep. - by Gustavo_z - 24.03.2012, 17:00

Forum Jump:


Users browsing this thread: 2 Guest(s)