19/02/2021 23:57
(19/02/2021 23:00)Smith Escreveu: tentei isso
Código:if(GetPlayerHealth(playerid)<= 5)
{
ApplyAnimation(playerid, "CRACK", "crckdeth1", 4.1, 0, 1, 1, 0, 10000, 0);
}
Nao vai
GetPlayerHealth retorna a vida anterior ao player receber dano. Está escrito na documentação...sendo assim, provavelmente o player morre antes de aplicar a animação.
tente da seguinte forma:
Código:
if(GetPlayerHealth(playerid)<= 12) return ApplyAnimation(playerid, "CRACK", "crckdeth1", 4.1, 0, 1, 1, 0, 10000, 0);