Chat Animation
#3

You have set the anim to loop, so it won't end. https://sampwiki.blast.hk/wiki/ApplyAnimation

If you want to stop an animnation without creating a command you can;
PHP код:
#define PRESSED(%0) \
    
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if (
PRESSED(KEY_SECONDARY_ATTACK))
    {
        
ApplyAnimation(playerid"CARRY""crry_prtial"4000001);
    }
    return 
1;

or set a timer that will stop the animnation.

PHP код:
forward StopAnim(playerid);
public 
StopAnim(playerid)
{
    
ApplyPlayerAnimation(playerid"CARRY""crry_prtial"2.000000);
    return 
1;
}
CMD:chat(playeridparams[])//I don't know your OnPlayerText code
{
        
ApplyPlayerAnimation(playerid,"PED","IDLE_CHAT",4.1,1,1,1,1,1);
        
SetTimer("StopAnim"5000false);
    return 
1;

Reply


Messages In This Thread
Chat Animation - by Bigwebicek - 09.06.2017, 06:37
Re: Chat Animation - by Kane - 09.06.2017, 07:20
Re: Chat Animation - by Zmith - 09.06.2017, 09:38
Re: Chat Animation - by Bigwebicek - 09.06.2017, 17:49

Forum Jump:


Users browsing this thread: 4 Guest(s)