when player press enter stop 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)
+--- Thread: when player press enter stop animation? (
/showthread.php?tid=311539)
when player press enter stop animation? -
the.et - 17.01.2012
How can i make a code that checks if a player press "ENTER" while doing an animation WILL stop that animation.
for example:
Код:
CMD:piss(playerid , params[])
{
ApplyAnimation(playerid,"PAULNMAC","Piss_loop",4.1,1,1,1,1,1,1);
return 1;
}
How can i script a code that stops that player from pissing(animation) when he clicks "ENTER" key on their keyboard??
Thankss.
Re: when player press enter stop animation? -
thimo - 17.01.2012
Err i should use GetPlayerPos And then SetPlayerPos(playerid, x, y, z + 0.1); i think that will stop it anyway