[Ajuda] SetTimerEx Bugado "Relogio UP"
#4

Quote:
Originally Posted by GuiKommander
View Post
Recomendo utilizar Timer Global para todos os players nesse caso.
Crie um timer com repetiзгo (false) e coloque o mesmo timer dentro do timer. Assim й mais otimizado

Exemplo:

PHP Code:
forward UpGeral();
public 
UpGeral()
{
    for(new 
i!= MAX_PLAYERS; ++i)
    {
        if(
IsPlayerConnected(i))
        {
            
//
        
}
    }
    
SetTimer("UpGeral"1000false);

Se eu usar um time para todos, quando eu bloquear o time de um nгo bloquearia de todos tbm ?

Quote:
Originally Posted by XandyMello
View Post
PHP Code:
public OnPlayerConnect(playerid)
{
    
// Coloque esse cуdigo na callback onde autentica a senha do usuбrio, para exibir o 'Relуgio UP' quando inserir a senha.
    
UPRelogio[playerid] = SetTimerEx("RelogioUP"1000,true,"i",playerid);
    
    
PlayerStatus[playerid][20] = CreatePlayerTextDraw(playerid598.600097302.655731"");
    
PlayerTextDrawLetterSize(playeridPlayerStatus[playerid][20], 0.3310001.130000);
    
PlayerTextDrawAlignment(playeridPlayerStatus[playerid][20], 2);
    
PlayerTextDrawColor(playeridPlayerStatus[playerid][20], -1);
    
PlayerTextDrawSetShadow(playeridPlayerStatus[playerid][20], 0);
    
PlayerTextDrawSetOutline(playeridPlayerStatus[playerid][20], -1);
    
PlayerTextDrawBackgroundColor(playeridPlayerStatus[playerid][20], 255);
    
PlayerTextDrawFont(playeridPlayerStatus[playerid][20], 3);
    
PlayerTextDrawSetProportional(playeridPlayerStatus[playerid][20], 1);
    
PlayerTextDrawSetShadow(playeridPlayerStatus[playerid][20], 0);
    return 
1;
}
public 
OnPlayerDisconnect(playerid)
{
    
KillTimer(UPRelogio[playerid]);
    return 
1;

Jб coloquei isso, mas nгo adianta.
Reply


Messages In This Thread
SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 30.03.2019, 00:30
Re: SetTimerEx Bugado "Relogio UP" - by GuiKommander - 30.03.2019, 01:29
Re: SetTimerEx Bugado "Relogio UP" - by XandyMello - 30.03.2019, 01:47
Re: SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 30.03.2019, 09:34
Re: SetTimerEx Bugado "Relogio UP" - by XandyMello - 30.03.2019, 09:51
Re: SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 30.03.2019, 10:06
Re: SetTimerEx Bugado "Relogio UP" - by GuiKommander - 30.03.2019, 11:15
Re: SetTimerEx Bugado "Relogio UP" - by ipsLuan - 30.03.2019, 12:36
Re: SetTimerEx Bugado "Relogio UP" - by LockedLucas - 30.03.2019, 23:04
Re: SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 01.04.2019, 22:33
Re: SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 01.04.2019, 22:48
Re: SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 05.04.2019, 06:12
Re: SetTimerEx Bugado "Relogio UP" - by 1sbedx - 05.04.2019, 06:22
Re: SetTimerEx Bugado "Relogio UP" - by CALENZ021 - 13.04.2019, 18:38

Forum Jump:


Users browsing this thread: 1 Guest(s)