Quote:
Originally Posted by irinel1996
Maybe this code helps you:
pawn Код:
//OnPlayerUpdate for example, to be more accurate. if(GetPlayerAnimationIndex(playerid)) { new animlib[32]; new animname[32]; new msg[128]; GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32); format(msg, 128, "libary: %s || name: %s || index: %d", animlib, animname,GetPlayerAnimationIndex(playerid)); SendClientMessage(playerid, 0xFFFFFFFF, msg); }
And when you discover punching index use GetPlayerAnimationIndex to check player's anim.
|
What's with the numbers? Sorry I am at the beggining of scripting right now, si I don't understand much of this. I don't need a message displayed or anything. I just want that animation to stop if the player is clicking (to punch).