24.07.2012, 16:10
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:
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); } } }