Please Help Me Out!
#5

Quote:
Originally Posted by [WsR
RyDeR ]
Код:
#include <a_samp>

forward DeathCheck(playerid);
new CheckTimer[MAX_PLAYERS];

public DeathCheck(playerid)
{
	new Float:Health;
 	do
 	{
		ApplyAnimation(playerid, "SWEET", "Sweet_injuredloop", 4.1,1,1,1,1,1);
	}
	while(GetPlayerHealth(playerid, Health) <5);
  return 1;
}

public OnPlayerConnect(playerid)
{
	CheckTimer[playerid] = SetTimerEx("DeathCheck", 1000, true, "i", playerid);
	return 1;
}

public OnPlayerDisconnect(playerid)
{
	KillTimer(CheckTimer[playerid]);
	return 1;
}
Here I made this for you; test it..
Thank you so much, but now it is doing it when the player spawns with full health, and even if I try to perform another animation it send them back to doing this one. I only want this animation done when a player has <= 5 HP and when they re-spawn the animation will be finished, while the timer keeps ticking. I am not asking for a handout either I just would like to know what I am doing wrong!
Reply


Messages In This Thread
Please Help Me Out! - by notec100 - 02.12.2009, 12:10
Re: Please Help Me Out! - by RyDeR` - 02.12.2009, 12:15
Re: Please Help Me Out! - by notec100 - 02.12.2009, 12:26
Re: Please Help Me Out! - by RyDeR` - 02.12.2009, 12:47
Re: Please Help Me Out! - by notec100 - 02.12.2009, 14:23
Re: Please Help Me Out! - by Nero_3D - 02.12.2009, 15:28
Re: Please Help Me Out! - by notec100 - 02.12.2009, 16:29
Re: Please Help Me Out! - by Mike Garber - 02.12.2009, 16:49

Forum Jump:


Users browsing this thread: 1 Guest(s)