Please Help Me Out!
#4

Код:
#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..
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)