[HELP] Piss Animation
#1

Is it other "Piss" than this?

pawn Код:
SetPlayerSpecialAction(playerid, 68); // 68 = The piss.
i want it to.

pawn Код:
ApplyAnimation
Reply
#2

The regular animation has no pee. But as last as I heard, it works for ApplyAnimation + SpecialAnimation

https://sampwiki.blast.hk/wiki/Animations
https://sampwiki.blast.hk/wiki/ApplyAnimation
Reply
#3

Oh Thanks.... but i dont want to use "SetPlayerSpecialAction" because then i need to stop the Animation with "Enter".... i want to stop the animation with "KEY_FIRE"


pawn Код:
ApplyAnimation(playerid, "PAULNMAC", "Piss_loop", 4.0, 1, 1, 1, 1, 0); // Now i just need the "Piss"
Reply
#4

Create a variable:
pawn Код:
new IsPiss[MAX_PLAYERS];
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/piss", cmdtext, true, 10) == 0)
    {
        ApplyAnimation(playerid, "PAULNMAC", "Piss_loop", 4.0, 1, 1, 1, 1, 0);
                          IsPiss[playerid] = 1
        return 1;
    }
    return 0;
}
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
     if ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE))
     {
           if(IsPiss[playerid] == 1)
           {
               ClearAnimations(playerid);
           }
     }                
return 1;
}
Will this work?
Reply
#5

Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)