[B]Help me , get animation of playe
#1

how to get anim , when player use left mouse button . However, it not give damage to anyone
Reply
#2

https://sampwiki.blast.hk/wiki/Animations
Reply
#3

where is it, what is it .

can you help me ?
Reply
#4

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);
				}
			}
		}
Reply
#5

You can check if he presses a key at
PHP код:
OnPlayerKeyStateChange 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)