[Ajuda] SetTimerEx - 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: [Ajuda] SetTimerEx (
/showthread.php?tid=489003)
SetTimerEx -
Canema - 20.01.2014
Preciso de uma ajuda,estou querendo mudar o tempo que a pessoa pode incendiar /incendiar ai vem a mensagem "Espere um pouco para poder incendiar novamente"Qual o cуdigo usado ?
Re: SetTimerEx -
JonathanFeitosa - 20.01.2014
pawn Код:
// Topo
new JFSExemplo [MAX_PLAYERS];
// No comando
if (JFSExemplo[playerid] == 1) return SendClientMessage (playerid, -1, "Aguarde 5 segundos");
SetTimerEx("NomePublic", 5000 , false, "i", playerid);
JFSExemplo [playerid] = 1;
// No final do GM/FS
forward NomePublic(playerid);
public NomePublic(playerid)
{
JFSExemplo[playerid] = 0;
return true;
}
Fiz pelo celular, caso queira aumentar o tempo, troque o 5000 por qual deseje mudar.
Se vocк entendeu ele, pode certamente agora modificar o seu.