Posts: 371
Threads: 66
Joined: Oct 2012
Reputation:
0
I need a function that get player anim
if player using (killing with knife from behind) return true;
else return false; XDDDDDDD
Posts: 371
Threads: 66
Joined: Oct 2012
Reputation:
0
Hey Dwane i want the Anim that when player Kill player in ninja style! ( like in SP in mission stealing the book in madd ddog's book ) XD
you know what im saying
Posts: 734
Threads: 8
Joined: Jun 2009
Use Bicentric's function skeleton, and place in the ID that you find, you can use this handy little snippet to do it yourself:
pawn Код:
public OnPlayerUpdate(playerid)
{
static index;
index = GetPlayerAnimationIndex(playerid);
if (index)
{
new animlib[32], animname[32], msg[128];
GetAnimationName(index, animlib, 32, animname, 32);
format(msg, 128, "Running animation: %s/%s, index: %d", animlib, animname, index);
SendClientMessage(playerid, 0xFFFFFFFF, msg);
}
return 1;
}
Checking just the animation index is better and a little faster than slowly comparing the animations name.
Just put this in your mode and compile. As soon as you spawn, you will get spammed with Running animation: messages, so just get a player on your server and knife him from behind. Then check your chatlog for the animation index.