16.12.2012, 13:10
Hey.
I have the talk animations to the onplayertext, and it works fine so far.
However, I was wondering. How am I able to prevent the animations from activating if: Another animation is active, the player is crouched, and if the player is frozen?
Here's the code.
I have the talk animations to the onplayertext, and it works fine so far.
However, I was wondering. How am I able to prevent the animations from activating if: Another animation is active, the player is crouched, and if the player is frozen?
Here's the code.
Код:
new AnimR = random(1); if(AnimR == 0 && !IsPlayerInAnyVehicle(playerid)) { ApplyAnimation(playerid, "PED", "IDLE_CHAT", 4.0, 1, 0, 0, 1, 1); SetTimerEx("SpeakAnim", strlen(text)*150, false, "i", playerid); } else if(AnimR == 1 && !IsPlayerInAnyVehicle(playerid)) { ApplyAnimation(playerid, "PED", "Idle_Chat_02", 4.0, 1, 0, 0, 1, 1); SetTimerEx("SpeakAnim", strlen(text)*150, false, "i", playerid); }