A question (+REP)
#1

Hello all, I tried to set the player do an animation with ApplyPlayerAnimation when the player take damage.
I tried many times but i failed. So how to do that? Can someone help me ?
Reply
#2

try to put 2 times the animmation,

or make a timer with 0.5 seconds settimer("Animation",500,false,"i",playerid);

public animation(playerid)
applyplayeranimation(playerid)
Reply
#3

Not works. Guys can you help me?
Reply
#4

Quote:
Originally Posted by TopShooter
Посмотреть сообщение
This one should work.

PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponid)
{
    if(
weaponid == 22 || weaponid == 23 || weaponid == 24 || weaponid == 25 || weaponid == 26 || weaponid == 27 || weaponid == 28 || weaponid == 29 || weaponid == 30 || weaponid == 31 || weaponid == 32 || weaponid == 33 || weaponid == 34)
    {
        
ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,0,0,0,0); // << Animation Example.
        // Your animation code here, applyanimation and etc.
    
}
    return 
1;

Why not switch?

PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponid)
{
    switch(
weaponid)
{
case 
22 .. 34:
    {
        
ApplyAnimation(playerid,"PED","KO_skid_front",4.1,0,0,0,0,0); // << Animation Example.
        // Your animation code here, applyanimation and etc.
    
}
}
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)