SA-MP Forums Archive
Prevent player from stoping 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: Prevent player from stoping animation (/showthread.php?tid=360061)



Prevent player from stoping animation - iWhite - 16.07.2012

Is there any way to prevent player from stoping animation?
If I apply player KILL_Knife_Ped_Die animation and if player pushes SHIFT button, he will jump and won't be lying on ground anymore. I want to make him lying on ground untill 5seconds will pass and WITHOUT TogglePlayerControllable.
Thanks.


Re: Prevent player from stoping animation - iWhite - 16.07.2012

Well, I want to allow player to move his camera, like always, but prevent him from stopping animation.


Re: Prevent player from stoping animation - Andi_Evandy - 16.07.2012

pawn Код:
ApplyAnimation(playerid,"KNIFE","KILL_Knife_Ped_Die",4.0,0,1,1,1,0); //Freeze is the important thing



Re: Prevent player from stoping animation - iWhite - 16.07.2012

Quote:
Originally Posted by Andi_Evandy
Посмотреть сообщение
pawn Код:
ApplyAnimation(playerid,"KNIFE","KILL_Knife_Ped_Die",4.0,0,1,1,1,0); //Freeze is the important thing
Код:
ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Die", 4.000000, 0, 0, 0, 1, 2000, 1);
I already done that. But i will try to set lockx and locky...


Re: Prevent player from stoping animation - iWhite - 16.07.2012

Doesn't work


Re: Prevent player from stoping animation - Andi_Evandy - 16.07.2012

set the time to 0?


Re: Prevent player from stoping animation - iWhite - 16.07.2012

Quote:
Originally Posted by Andi_Evandy
Посмотреть сообщение
set the time to 0?
It worked, thanks!