24.07.2012, 18:07
Pretty sure my above post was wrong.
Try this:
This should check if the players animation AND players special action isn't in use, which will then do the chat animation.
You may have been doing SPECIAL_ACTION_SITTING or something.
Try this:
pawn Code:
case 1:
{
if(!IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerAnimationIndex(playerid) == 0 && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_NONE)
{
ApplyAnimation(playerid,"MISC", "Idle_Chat_02" ,4.0, 1, 1, 1, 1, 1);
SetTimerEx("StopTalkinga", strlen(text)*200, 0, "i", playerid);
}
else
{
}
}
}
You may have been doing SPECIAL_ACTION_SITTING or something.