[Ajuda]Criar relogio de up
#2

Код:
new timer, contagem = 15; 

public OnPlayerCommandText(playerid,cmdtext) 
{ 
    if(!strcmp(cmdtext,"/contagem",true)) 
    { 
        timer = SetTimer("Contagem",1000,true); 
        return true; 
    } 
    return false; 
} 

forward Contagem(); 
public Contagem() 
{ 
    contagem--; 
    if(contagem > 0) 
    { 
        for(new i = 0, j = GetMaxPlayers(); i != j; i++) 
        { 
            new string[30]; 
            format(string,sizeof(string),"%i",contagem); 
            GameTextForPlayer(i, contagem,1000,0); 
        } 
    } 
    else 
    { 
        for(new i = 0, j = GetMaxPlayers(); i != j; i++) 
        { 
            GameTextForPlayer(i,"GO",3000,0); 
            KillTimer(timer); 
        } 
    } 
    return true; 
}
So muda o tempo la em cima.

CReditos A ROCKFIRE ;"
Reply


Messages In This Thread
[Ajuda]Criar relogio de up - by DrTHE - 25.09.2011, 19:13
Re: [Ajuda]Criar relogio de up - by Izaac Abreu - 25.09.2011, 20:25
Re: [Ajuda]Criar relogio de up - by DrTHE - 25.09.2011, 20:54
Re: [Ajuda]Criar relogio de up - by Izaac Abreu - 25.09.2011, 21:14
Re: [Ajuda]Criar relogio de up - by Shelby - 25.09.2011, 21:45
Re: [Ajuda]Criar relogio de up - by DrTHE - 25.09.2011, 22:28
Re: [Ajuda]Criar relogio de up - by Shelby - 25.09.2011, 22:43

Forum Jump:


Users browsing this thread: 1 Guest(s)