[Ajuda] Verificar TIMER para executar tal aзгo
#9

Quote:
Originally Posted by zCyan
Посмотреть сообщение
PHP код:
forward TimerAcabo(playerid); //onde quiser, recomendo no inicio do Gamemode
// OnGameModeInit
SetTimer("TimerAcabo"10000false); //tempo para acabar o timer, em milesegundos
 
public TimerAcabo(playerid)
{
    
// funcao quando o timer acaba
    
return 1;

PHP код:
new bool:Block;
// OnGameModeInit
Block true;
SetTimer("TimerAcabo"10000false); //tempo para acabar o timer, em milesegundos
forward TimerAcabo(playerid);
public 
TimerAcabo(playerid)return Block false;
//OnPlayerRequestSpawn
if(block == true)
{
   
//code class 1
   
return true;
}else{
   
//code class 2
   
return true;


To um tempinho aposentado HueHue
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)