Setting Chat Animations with Dialog
#5

Okay so I have everything working perfectly thanks to the SA-MP forums, but I forgot one detail.

I don't want the talking animation to occur if they are already in an animation, like /sit.

I tried using GetPlayerAnimationIndex, but now it's not evening using the talking animation at all.

Part of code in question:


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("StopTalking", strlen(text)*200, 0, "i", playerid);
                       }
                  }
                }
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)