SA-MP Forums Archive
how ApplyAnimation randomly run an anime ? - 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: how ApplyAnimation randomly run an anime ? (/showthread.php?tid=423482)



how ApplyAnimation randomly run an anime ? - omidi - 17.03.2013

hello
Код:
forward randomanime(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync);
public randomanime(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
{
	new mrand =random(3);
		if(mrand == 1)
	{
	 ApplyAnimation(playerid, "GHANDS", "gsign1", 4.0, 0, 0, 0, 0, 0, 1);
	 }
	 ApplyAnimation(playerid, "GHANDS", "gsign1LH", 4.0, 0, 0, 0, 0, 0, 1);
	 	if(mrand == 2)
	{
	 ApplyAnimation(playerid, "GHANDS", "gsign2", 4.0, 0, 0, 0, 0, 0, 1);
	 }
	 	if(mrand == 3)
	{
	 ApplyAnimation(playerid, "GHANDS", "gsign2LH", 4.0, 0, 0, 0, 0, 0, 1);
	 }
}
Код:
	ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync);
wont work
thanks for helping me out