13.02.2015, 13:58
I think the easiest way would be to set a player variable for a player when he uses /handsup, and then check if the variable is true when you use /cuff.
If you're really into using the GetPlayerAnimationIndex
Approach like this:
I did not test this
If you're really into using the GetPlayerAnimationIndex
Approach like this:
Код:
new lib[32]; new index[32]; if(GetPlayerAnimationIndex(playerid)) GetAnimationName(GetPlayerAnimationIndex(playerid),lib,32,index,32); if(strcmp(lib,"PED") == 0 && strcmp(index,"HANDSUP") == 0) { //player will be cuffed }