[Pedido] Um anti Flood Comands.
#8

pawn Код:
IsSpamming(pid,temp)
{
    static sz_t[MAX_PLAYERS char];
    if(sz_t{pid} == 0)
    {
        sz_t{pid} = gettime();
        return false;
    }
    if((gettime() - sz_t{pid}) >= temp) return true;
    return sz_t{pid} = gettime();
}

Utilizando:

pawn Code:
if(IsSpamming(playerid, 3)) // 3 segundos
{
     return SendClientMessage(playerid, -1,"Pare con o frodi mano!"),0;
}
taa ae usei o search por 1 minuto e achei interessante neh ?
faзa bom proveito

creditos a
[Full]Garfield[XDB]
Reply


Messages In This Thread
Um anti Flood Comands. - by Mercurio - 22.07.2012, 03:33
Re: Um anti Flood Comands. - by Mercurio - 22.07.2012, 03:39
AW: Um anti Flood Comands. - by billy the kid - 22.07.2012, 03:43
Re: Um anti Flood Comands. - by Arthenry - 22.07.2012, 03:48
AW: Um anti Flood Comands. - by billy the kid - 22.07.2012, 03:50
Re: Um anti Flood Comands. - by Abravanel - 22.07.2012, 03:55
Re: Um anti Flood Comands. - by Mercurio - 22.07.2012, 03:57
AW: Um anti Flood Comands. - by billy the kid - 22.07.2012, 04:00
Re: AW: Um anti Flood Comands. - by Mercurio - 22.07.2012, 04:15
AW: Um anti Flood Comands. - by billy the kid - 22.07.2012, 04:39

Forum Jump:


Users browsing this thread: 2 Guest(s)