[Ajuda] timer continuo
#4

Quote:
Originally Posted by Netinho_the_killer
Посмотреть сообщение
Й esse ai:
Код HTML:
forward timerzv(playerid);
public timerzv(playerid)
{
 	SetPlayerPos(playerid,-2680.9885,2084.4421,55.8125);
 	KillTimer(zvtimer);
	return 1;
}
public OnPlayerUpdate(playerid)
{
	if(!IsPlayerInRangeOfPoint(playerid,413.6301 ,-2470.79745,2422.9845,15.6062))
  	{
		if(EmArena7[playerid] == true)
		{
		    GameTextForPlayer(playerid,"~r~Tens 10 segundos para voltar para a zona",10000,0);
		    zvtimer = SetTimerEx("timerzv", 10000, false, "i", playerid);
		}
	}
	if(IsPlayerInRangeOfPoint(playerid,413.6301 ,-2470.79745,2422.9845,15.6062))
	{
	    if(EmArena7[playerid] == true)
		{
		    GameTextForPlayer(playerid,"~g~Acho bem OH!!!",1000,0);
		    KillTimer(zvtimer);
		}
    }
false so vai ser chamado uma vez entгo nao precisa dar killtimer
Reply


Messages In This Thread
timer continuo - by Netinho_the_killer - 09.12.2013, 16:06
Re: timer continuo - by PT - 09.12.2013, 17:16
Re: timer continuo - by Netinho_the_killer - 10.12.2013, 15:03
Re: timer continuo - by mau.tito - 10.12.2013, 15:12
Re: timer continuo - by Netinho_the_killer - 10.12.2013, 16:32
Re: timer continuo - by Netinho_the_killer - 11.12.2013, 21:17

Forum Jump:


Users browsing this thread: 1 Guest(s)