how ApplyAnimation randomly run an anime ?
#1

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)