SA-MP Forums Archive
Animation freezes*********?? xD - 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: Animation freezes*********?? xD (/showthread.php?tid=68446)



Animation freezes*********?? xD - introzen - 10.03.2009

I got this command:

Code:
dcmd_r(playerid, params[])
	{
	  if(PlayerInfo[playerid][pMember] != 1) return 1;
	  if(params[0] == 0) return SendClientMessage(playerid,COLOR_DARKRED,"Usage: /r <message>");
    for ( new i = 0; i < MAX_PLAYERS; i++ )
		{
			if(PlayerInfo[i][pMember] == 1)
			{
			  new pName[MAX_PLAYER_NAME],string[256];
	  		GetPlayerName(playerid,pName,sizeof(pName));
			  format(string,sizeof(string),"((Radio %s: %s))",pName,params[0]);
			  ApplyAnimation(playerid,"ped","phone_talk",6.0,0,1,1,0,1000);
		  	SendClientMessage(i,COLOR_LIGHTBLUE,string);
			}
		}
		return 1;
	}
It's supposed to be working like this:

/r <message>

then player will apply a animation that causes his right hand to go up to his ear and down...

BUT, when the hand goes up the player gets frozen...

I don't want it to be like that. I want the player be able to run at the same time as the animation...

Help please? =)


Re: Animation freezes*********?? xD - Yaheli_Faro - 10.03.2009

pawn Code:
ApplyAnimation(playerid,"ped","phone_talk",6.0,0,1,1,0,1000);
ApplyAnimation(playerid, animlib[], animname[], Float:fS, opt1, opt2, opt3, opt4, opt5)
Try

pawn Code:
ApplyAnimation(playerid,"ped","phone_talk",6.0,0,1,1,0,1000);
And if that doesn't work change opt4 to 1 and see if it works.


Re: Animation freezes*********?? xD - introzen - 10.03.2009

Already tested that... Don't work


Re: Animation freezes*********?? xD - KeyWay - 16.06.2009

Id like to know that too...


Re: Animation freezes*********?? xD - Š”itisOnHuora - 18.02.2010

Quote:
Originally Posted by KeyWay
Id like to know that too...
Me too? ANyone?