27.08.2017, 03:00
(
Последний раз редактировалось PedroH; 27.08.2017 в 17:35.
)
Quote:
Tem que esconder o textdraw e depois mostrб-lo para atualizar.
PHP код:
|
eu nao tou conseguindo fazer com a do health:
onplayerupdate:
PHP код:
new Float:health2;
GetPlayerHealth(playerid, health2);
if(health2 >= 50) {
PlayerTextDrawColor(playerid,PLAYER_HUD[playerid][5], 0x03FF35FF); //VERDE
}
if(health2 < 40) {
PlayerTextDrawColor(playerid,PLAYER_HUD[playerid][5], 0xFF7403FF); //AMARELO
}
if(health2 < 15) {
PlayerTextDrawColor(playerid,PLAYER_HUD[playerid][5], COR_VERMELHO); //VERMELHO
}
PlayerTextDrawHide(playerid, PLAYER_HUD[playerid][5]);//HEALTH
PlayerTextDrawShow(playerid, PLAYER_HUD[playerid][5]);//HEALTH
@Edit Resolvido!