pawn Код:
#include a_samp
new lastIndex[MAX_PLAYERS];
public OnPlayerUpdate(playerid) {
new currIndex = GetPlayerAnimationIndex(playerid);
if(currIndex != lastIndex[playerid]) {
new currLib[32], curName[32], msg[32 + 32 + 12];
GetAnimationName(currIndex, currLib, 32, curName, 32);
format(msg, 128, "Animation [%i]: %s, %s", currIndex, currLib, curName);
SendClientMessage(playerid, -1, msg);
lastIndex[playerid] = currIndex;
}
return 1;
}
Run this code as a filterscript and throw some punches. It'll print the information in the chat.
Also be sure to run it with other fight style if you plan on using fight styles.