[Ajuda] Animaзгo na morte
#1

Queria saber como faзo para colocar um anime quando o cara morre. Tipo este:

https://www.youtube.com/watch?v=oUBwArCln1w Parte 0:33 ele morre.

O anime jб sei qual й, sу quero saber em qual callback eu coloco ele.

Tentei:

Код:
No givedamage.
if(HP == 0) e < 1)
Nгo adianta.
Reply
#2

tente na OnPlayerDeath
Reply
#3

Quote:
Originally Posted by LockedLucas
Посмотреть сообщение
tente na OnPlayerDeath
Jб tentei mano, porйm ele efetua uma animaзгo de queda antes da que eu quero.
Reply
#4

Mano OnPlayerDeath coloque a animaзгo Death e quando ele morre
Reply
#5

Tente isso:

PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart)
{
    new 
Float:health;
    
GetPlayerHealth(playeridhealth);
    if(
health <= 1.1 || (health amount) <= 1.0)
    {
        if(
health == 1.1) return SetPlayerHealth(playerid1.1);
        
//>>>> Animaзгo aqui <<<<
        
ResetPlayerWeapons(playerid);
        
SetPlayerHealth(playerid1.1);
        
SetPlayerArmour(playerid0);
        
SetPlayerDrunkLevel(playerid5001);
        
OnPlayerDeath(playeridissueridweaponid);
        
SetTimerEx("Spawn"4000false"i"playerid);
    }
    return 
1;
}
public 
OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
    if(
hittype == BULLET_HIT_TYPE_PLAYER)
    {
        new 
Float:health;
        
GetPlayerHealth(hitidhealth);
        if(
health <= 1.1) return 0;
    }
    return 
1;
}
forward Spawn(playerid);
public 
Spawn(playerid) return ClearAnimations(playerid), SetPlayerDrunkLevel(playerid0), SpawnPlayer(playerid); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)