how to detect which animation i use? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to detect which animation i use? (
/showthread.php?tid=269401)
how to detect which animation i use? -
swieberdevos - 16.07.2011
I need to know how i can detect a animation.
thanks
AW: how to detect which animation i use? -
Drebin - 16.07.2011
It's not possible to get a player's animation. (or ?)
Re: how to detect which animation i use? -
Vince - 16.07.2011
Get your facts straight.
GetPlayerAnimationIndex and
GetAnimationName.
Re: how to detect which animation i use? -
MoroDan - 16.07.2011
pawn Код:
if(!strcmp(cmdtext, "/myanimation", true))
{
new animlib[32];
new animname[32];
new str[128];
GetAnimationName(GetPlayerAnimationIndex(playerid),animlib,32,animname,32);
format(str, 128, "Your animation: %s %s", animlib, animname);
SendClientMessage(playerid, 0xFFFFFFFF, str);
}
Re: how to detect which animation i use? -
swieberdevos - 16.07.2011
i need to detect when he is using it, i mean in casino when he uses the casino thing he will be killed
can you make me a example, i don't really know how

(
Re: how to detect which animation i use? -
swieberdevos - 16.07.2011
nevermind i made meself