SA-MP Forums Archive
2 problems on animations, how to fix it? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 2 problems on animations, how to fix it? (/showthread.php?tid=482262)



2 problems on animations, how to fix it? - AnonScripter - 20.12.2013

1) why this code apply only the animation, and doesn't play the puke sound ?
2) why i got freezed at my current location after any animation finished, i have to press JUMP to move. any soloution?

pawn Код:
CMD:puke(playerid, params[])
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x,y,z);
    ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P" , 4.1, 0, 1, 1, 1, 1, 1);
    PlayerPlaySound(playerid,1169,x,y,z);
    return 1;
}



Re: 2 problems on animations, how to fix it? - denmark - 20.12.2013

Quote:
Originally Posted by AnonScripter
Посмотреть сообщение
1) why this code apply only the animation, and doesn't play the puke sound ?
2) why i got freezed at my current location after any animation finished, i have to press JUMP to move. any soloution?

pawn Код:
CMD:puke(playerid, params[])
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x,y,z);
    ApplyAnimation(playerid, "FOOD", "EAT_Vomit_P" , 4.1, 0, 1, 1, 1, 1, 1);
    PlayerPlaySound(playerid,1169,x,y,z);
    return 1;
}
It does that after ended all anims, so no solution for it.
I can't see why it doesn't play the player sound.


Re: 2 problems on animations, how to fix it? - Excelize - 20.12.2013

For 2) you could do:

Код:
 TogglePlayerControllable(playerid, 1);
This should work


Re: 2 problems on animations, how to fix it? - AnonScripter - 20.12.2013

nothing work, i really want to fix these 2 problems, in some server it doesn't have these 2 problems and everything works fine