[Ajuda] Tempo afk em cima do player
#5

e so adaptar

Contagem
Код:
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; 
}
Reply


Messages In This Thread
Tempo afk em cima do player - by MediaCL - 24.10.2017, 21:55
Re: Tempo afk em cima do player - by Gguiz - 24.10.2017, 22:05
Re: Tempo afk em cima do player - by Rato22 - 24.10.2017, 22:31
Re: Tempo afk em cima do player - by MediaCL - 24.10.2017, 22:33
Re: Tempo afk em cima do player - by VinnyScript - 24.10.2017, 22:37

Forum Jump:


Users browsing this thread: 1 Guest(s)