[Pedido] Anti flood.
#3

pawn Код:
new AntFlood[MAX_PLAYERS];
public OnPlayerCommandReceived(playerid, cmdtext[]){
    if(AntFlood[playerid] > GetTickCount()) return SendClientMessage(playerid, -1, "Espere 5 segundos para digitar comando novamente."), 0;
    AntFlood[playerid] = GetTickCount() + 5000;
    return true;
}
Reply


Messages In This Thread
Anti flood. - by BieeelEvolution - 14.06.2013, 00:49
Re: Anti flood. - by Wellington1999 - 14.06.2013, 01:55
Re: Anti flood. - by Sppp - 14.06.2013, 01:56
Re: Anti flood. - by DannielCooper - 14.06.2013, 02:40

Forum Jump:


Users browsing this thread: 2 Guest(s)