2 problems on animations, how to fix it?
#1

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;
}
Reply
#2

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.
Reply
#3

For 2) you could do:

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)