Setting Chat Animations with Dialog
#6

Quote:
Originally Posted by GetPlayerAnimationIndex, SA-MP Wiki
0 if there is no animation applied
You are checking if an animation IS Being used, and if it is, you would do the animation.

Switch it with this:

pawn Code:
case 1:
{
    if(!IsPlayerInAnyVehicle(playerid))
    {
        if(GetPlayerAnimationIndex(playerid) == 0)
        {
        }
        else
        {
            ApplyAnimation(playerid,"MISC", "Idle_Chat_02" ,4.0, 1, 1, 1, 1, 1);
            SetTimerEx("StopTalkinga", strlen(text)*200, 0, "i", playerid);
       }
    }
}
All I changed was GetPlayerAnimationIndex(playerid) != 0 to GetPlayerAnimationIndex(playerid) == 0

(NOTICE: I could be wrong, quite sleepy right now )
Reply


Messages In This Thread
Setting Chat Animations with Dialog - by Noesis - 23.07.2012, 14:11
Re: Setting Chat Animations with Dialog - by Noesis - 23.07.2012, 17:38
Re: Setting Chat Animations with Dialog - by Ranama - 23.07.2012, 18:33
Re: Setting Chat Animations with Dialog - by Noesis - 24.07.2012, 03:55
Re: Setting Chat Animations with Dialog - by Noesis - 24.07.2012, 16:10
Re: Setting Chat Animations with Dialog - by Kindred - 24.07.2012, 16:14
Re: Setting Chat Animations with Dialog - by Noesis - 24.07.2012, 16:37
Re: Setting Chat Animations with Dialog - by Noesis - 24.07.2012, 18:02
Re: Setting Chat Animations with Dialog - by Kindred - 24.07.2012, 18:07

Forum Jump:


Users browsing this thread: 1 Guest(s)