PDA

View Full Version : when player press enter stop animation?


the.et
17/01/2012, 09:34 AM
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.

thimo
17/01/2012, 09:36 AM
Err i should use GetPlayerPos And then SetPlayerPos(playerid, x, y, z + 0.1); i think that will stop it anyway :)