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

Se funcionar avisa.
pawn Код:
new comandoDigitado[MAX_PLAYERS][128];
new comandoTempo[MAX_PLAYERS] = -1;

//OnPlayerCommandText
public OnPlayerCommandText(playerid, cmdtext[]) {
    if(!strcmp(cmdtext, comandoDigitado[playerid], true) && comandoTempo[playerid] < gettime())  {
        SendClientMessage(playerid, -1, "Aguarde 5 segundos para usar esse comando novamente.");
        return 1;
    }
    format(comandoDigitado[playerid], 128, "%s", cmdtext);
    comandoTempo[playerid] = gettime()+5;

    return ;
}
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)