29.10.2016, 02:46
Using
I get the animations, but i have only one problem to fix:
I get the couched animation and wake up animation, but if player is couched when he reload he get up...
Why?
One example:
Код:
public OnPlayerUpdate(playerid) { if(GetPlayerAnimationIndex(playerid)) { new animlib[32]; new animname[32]; new msg[128]; GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32); format(msg, 128, "Running anim: %s %s", animlib, animname); SendClientMessage(playerid, 0xFFFFFFFF, msg); } return 1; }
I get the couched animation and wake up animation, but if player is couched when he reload he get up...
Why?
One example:
Код:
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK) { ApplyAnimation (playerid , "PYTHON" , "python_crouchreload" , 4.0 , 0 , 0 , 0 , 0 , 500); } else { ApplyAnimation (playerid , "PYTHON" , "python_reload" , 4.0 , 0 , 0 , 0 , 0 , 500); }