[B]Help me , get animation of playe - 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)
+--- Thread: [B]Help me , get animation of playe (
/showthread.php?tid=650614)
[B]Help me , get animation of playe -
wilking - 03.03.2018
how to get anim , when player use left mouse button . However, it not give damage to anyone
Re: [B]Help me , get animation of playe -
RxErT - 03.03.2018
https://sampwiki.blast.hk/wiki/Animations
Re: [B]Help me , get animation of playe -
wilking - 03.03.2018
where is it, what is it .
can you help me ?
Re: [B]Help me , get animation of playe -
Crystallize - 03.03.2018
You can just do this:
Код:
new animname[32], animlib[32];
if(GetPlayerAnimationIndex(playerid))
{
GetAnimationName(GetPlayerAnimationIndex(playerid), animlib, sizeof(animlib), animname, sizeof(animname));
{
if(!strcmp(animname, "FIGHTA_1", true) || !strcmp(animname, "FIGHTA_2", true) || !strcmp(animname, "FIGHTA_3", true) || !strcmp(animname, "FIGHTKICK", true) || !strcmp(animname, "FIGHTKICK_B", true) || !strcmp(animname, "FIGHTA_M", true))
{
ClearAnimations(playerid);
}
}
}
Re: [B]Help me , get animation of playe -
PepsiCola23 - 03.03.2018
You can check if he presses a key at
PHP код:
OnPlayerKeyStateChange