[PEDIDO] Flood de comandos
#2

criei esta:
pawn Код:
#include <a_samp>

new carol[MAX_PLAYERS];

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(IsPlayerFlooding(playerid, 5))
        return SendClientMessage(playerid, -1,"Nгo floode comandos!");

    carol[playerid] = gettime();
    return 0;
}

stock IsPlayerFlooding(playerid, tempo)
{
    if(gettime() - carol[playerid] < tempo)   return true;
    return false;
}
pronto para usar.

Ps: aonde estб o 5 й o tempo ( segundos ).
Reply


Messages In This Thread
[PEDIDO] Flood de comandos - by sbrignet - 16.09.2011, 22:42
Re: [PEDIDO] Flood de comandos - by [O.z]Caroline - 16.09.2011, 22:54

Forum Jump:


Users browsing this thread: 1 Guest(s)