problem on 1 animation loop
#1

as the tittle say , i got problem after put animation code to my GM

Код:
public OnPlayerUpdate(playerid)
{
	new Float:health;
	GetPlayerHealth(playerid, health);
	if(health <= 50 && health >= 1)
	{
		SetPlayerWeather(playerid, -66);
		SetPlayerTime(playerid, 12, 0);
		SetPlayerDrunkLevel(playerid, 9000);
		GameTextForPlayer(playerid, "~r~Injured~n~~w~buy some food to restore your health!", health <= 50 && health >= 1, 3);
		ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Die", 4.0, 0, 1, 1, 1, 0, 1);
	}
	else if(health >= 50)
	{
		new hour, minute, second;
		gettime(hour, minute, second);
		SetPlayerTime(playerid, hour, minute);
		SetPlayerWeather(playerid, gWeather);
		SetPlayerDrunkLevel(playerid, 0);
	}
I want the anim is looping in 10 second so the player can attack other and he will fall in 10 second. but after i test it , it was looping about 1 second maybe because after the animation fall done , it repeat again.

What should i do ?
Reply


Messages In This Thread
problem on 1 animation loop - by Ivander - 03.10.2013, 13:38
Re: problem on 1 animation loop - by Krisna - 03.10.2013, 13:54
Re: problem on 1 animation loop - by RenovanZ - 03.10.2013, 13:56

Forum Jump:


Users browsing this thread: 2 Guest(s)