[Ajuda] ProgressBar
#1

To com dificuldades, para fazer com que a progressbar inves de carregar, descarregar, queria que ela viesse da direita para esquerda.
Alguem sabe como fazer?
Ja pequisei mas nao achei uma eplicaзao.

pawn Код:
#define FomeTempo  1 //define o tempo para ficar com fome
forward Fome(playerid);


public OnGameModeInit()
{
    FomeB = CreateProgressBar(552.00, 321.00, 55.50, 4.19, -16776961, 100.1);
    SetProgressBarMaxValue(FomeB, 100);
    return 1;
}

public OnGameModeExit()
{
    HideProgressBarForAll(FomeB);
    return 1;
}

public OnPlayerConnect(playerid)
{
    SetPVarInt(playerid,"Fome", 100);
    ShowProgressBarForPlayer(playerid, FomeB);
    return 1;
}

public OnPlayerSpawn(playerid)
{
    SetTimerEx("Fome", FomeTempo*60000 , 1, "i", playerid);
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    SetProgressBarValue(FomeB,0);
    UpdateProgressBar(FomeB,playerid);
    SetPVarInt(playerid,"Fome",101);
    return 1;
}

public Fome(playerid)
{
    SetPVarInt(playerid,"Fome", GetPVarInt(playerid, "Fome")-1);
    SetProgressBarValue(FomeB, GetPVarInt(playerid, "Fome"));
    UpdateProgressBar(FomeB, playerid);
    if(GetPVarInt(playerid, "Fome") <= 10)
    {
        new Float:vida;
        GetPlayerHealth(playerid, vida), SetPlayerHealth(playerid, vida-90.0);
        SendClientMessage(playerid, BRANCO, "|STATUS| Vocк esta com Fome, coma algum lanche ou vai Morrer de Fome");
        PlayerPlaySound(playerid, 1057, 0, 0, 0);
    }
    return true;
}
Reply


Messages In This Thread
ProgressBar - by FernandoSS - 20.07.2014, 12:07
Re: ProgressBar - by zSuYaNw - 20.07.2014, 17:04
Re: ProgressBar - by FernandoSS - 20.07.2014, 17:36
Re: ProgressBar - by zSuYaNw - 20.07.2014, 17:38
Re: ProgressBar - by FernandoSS - 20.07.2014, 17:43
Re: ProgressBar - by zSuYaNw - 20.07.2014, 17:48
Re: ProgressBar - by FernandoSS - 20.07.2014, 17:50
Re: ProgressBar - by zSuYaNw - 20.07.2014, 17:59
Re: ProgressBar - by FernandoSS - 20.07.2014, 18:26
Re: ProgressBar - by zSuYaNw - 20.07.2014, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)