[HELP] Piss Animation - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Piss Animation (
/showthread.php?tid=208722)
[HELP] Piss Animation - Larsey123IsMe - 09.01.2011
Is it other "Piss" than this?
pawn Код:
SetPlayerSpecialAction(playerid, 68); // 68 = The piss.
i want it to.
Re: [HELP] Piss Animation -
ToPhrESH - 09.01.2011
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
Re: [HELP] Piss Animation - Larsey123IsMe - 09.01.2011
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"
Re: [HELP] Piss Animation -
ToPhrESH - 09.01.2011
Create a variable:
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?
Re: [HELP] Piss Animation - Larsey123IsMe - 09.01.2011
Thanks