SA-MP Forums Archive
[Pedido] Ant Flood - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Ant Flood (/showthread.php?tid=646668)



Ant Flood - Raridade - 21.12.2017

Eu queria dar permissгo pra adm logado na rcon Flodar o quanto quiser sem interrupзхes. Eu sou novo e nao sei como fazer. O Ant flood й esse ai.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if((gettime() - FloodComandos[playerid]) < 1)
	{
	    SCM(playerid, COR_ERRO, "[ERRO] Aguarde 1 segundos para digitar novamente!");
	    FloodVezes[playerid]++;
	    return 1;
	}
	FloodVezes[playerid] = 0;
	FloodComandos[playerid] = gettime();


    new cmd[500];
	new idx;
	new tmp[500];
	new giveplayer[MAX_PLAYER_NAME+1];
	new sendername[MAX_PLAYER_NAME+1];
	new giveplayerid;
	new string[500];
	new dancestyle;



Re: Ant Flood - RodrigoMSR - 21.12.2017

PHP код:
if((gettime() - FloodComandos[playerid]) < && !IsPlayerAdmin(playerid)) 



Re: Ant Flood - Raridade - 21.12.2017

Obg ae mano <3 Ajudou bastante