[Ajuda] Progress Bar
#8

OnPlayerTakeDamage: GetPlayerHealth and GetPlayerArmour will return the old amounts of the player before this callback.

Ou seja, usar GetPlayerHealth aqui pega o valor de vida anterior ao dano.
Vocк deve usar em OnPlayerUpdate, como o @nasser disse ou siga o que eu falei.

@EDIT

Escreva isto uma funзгo e coloque em OnPlayerUpdate:

Код:
    new Float:jVida; 
    GetPlayerHealth(playerid, jVida); 
    SetPlayerProgressBarMaxValue(playerid, Vida[playerid], 100); 
    SetPlayerProgressBarValue(playerid, Vida[playerid], jVida);
Reply


Messages In This Thread
Progress Bar - by zNaKa - 10.06.2018, 12:07
Re: Progress Bar - by nasser - 10.06.2018, 15:22
Re: Progress Bar - by Ermanhaut - 10.06.2018, 15:42
Re: Progress Bar - by nasser - 10.06.2018, 16:13
Re: Progress Bar - by Ermanhaut - 10.06.2018, 16:41
Re: Progress Bar - by zNaKa - 10.06.2018, 16:46
Re: Progress Bar - by zNaKa - 10.06.2018, 16:51
Re: Progress Bar - by Ermanhaut - 10.06.2018, 17:11
Re: Progress Bar - by zNaKa - 10.06.2018, 17:20
Re: Progress Bar - by Ermanhaut - 10.06.2018, 17:53

Forum Jump:


Users browsing this thread: 2 Guest(s)