[Ajuda] SetTimerEx
#6

new bool:SUA_VARIAVEL[MAX_PLAYERS] = false; // No Inicio do GM
if(strcmp(cmdtext, "/kill", true) ==0){
if( SUA_VARIAVEL[ playerid ] == true ) return SendClientMessage( playerid, -1, "Sу depois de 20 segundos mano");
SetPlayerHealth(playerid, 0.0);
SUA_VARIAVEL[playerid] = true;
SetTimerEx("Desbloquearcmd", 120000, false, "i", playerid); // 120000 // porque 1000, й a cada 1 segundo! nunca esqueзa
return 1;}
// No fim do GM
forward Desbloquearcmd(playerid);
public Desbloquearcmd(playerid)
{
SUA_VARIAVEL[playerid] = false;
return 1;
}
Reply


Messages In This Thread
SetTimerEx - by Luiiiz - 28.01.2017, 23:06
Re: SetTimerEx - by JonathanFeitosa - 28.01.2017, 23:09
Re: SetTimerEx - by Luiiiz - 28.01.2017, 23:14
Re: SetTimerEx - by Luiiiz - 28.01.2017, 23:17
Re: SetTimerEx - by Whoo - 28.01.2017, 23:22
Re: SetTimerEx - by GuiKommander - 29.01.2017, 03:05
Re: SetTimerEx - by Luiiiz - 29.01.2017, 17:30
Re: SetTimerEx - by HoodScript - 29.01.2017, 21:22
Re: SetTimerEx - by AuhMaru - 30.01.2017, 12:03

Forum Jump:


Users browsing this thread: 1 Guest(s)