[DUV] /relatorio sem flood
#1

Eu queria saber como coloca para so poder dar /relatorio a cada 5 segundos ? Para nao ter mais floods .
Reply
#2

man olha meu tutorial: http://forum.sa-mp.com/showthread.ph...192#post740192
sу vaoi ter q usar SetTimer.
Reply
#3

Код:
new trelato[MAX_PLAYERS];
forward temporelato(playerid);
coloca isso no comando /relatorio
Код:
if (trelato[playerid] == 1)
			{
    			SendClientMessage(playerid, COLOR_LIGHTBLUE,"Aguarde 5 segundos para usar o comando novamente");
    			return 1;
    		}

	SetTimerEx("temporelato",5000,0,"i",playerid);
         trelato[playerid] = 1;
cria esse public
Код:
public temporelato(playerid)
{
	trelato[playerid] = 0;
}
pronto
Reply
#4

vllws mano tava atras Disso
Reply
#5

Obrigadгo !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)