04.12.2015, 15:44
Anyone know punch animlib and animname, i tried searching but no luck
#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;
}