How do regenerating hp?
#9

How need end timer, i want make it work only for 5seconds if 5 seconds end, timer will killed and hp will not gained bat after couple second passed again i can use it
Код:
forward Regeneration(playerid, timess);
public Regeneration(playerid, timess)
{
		new Float: Health;
		if(GetPlayerHealth(playerid, Health))
		{
			if(100.0 < (Health += 2.0)) SetPlayerHealth(playerid, 100.0);
			else
			{
				SetPlayerHealth(playerid, Health);
				SetTimerEx("Regeneration", 2000, false, "dd", playerid, times - 1);
			}
			return true;
		}
	return false;
}
Reply


Messages In This Thread
How do regenerating hp? - by Pokemon64 - 10.03.2017, 09:43
Re: How do regenerating hp? - by Toroi - 10.03.2017, 09:49
Re: How do regenerating hp? - by henkas - 10.03.2017, 10:19
Re: How do regenerating hp? - by Toroi - 10.03.2017, 10:22
Re: How do regenerating hp? - by Pokemon64 - 10.03.2017, 10:25
Re: How do regenerating hp? - by Toroi - 10.03.2017, 10:28
Re: How do regenerating hp? - by Pokemon64 - 10.03.2017, 10:30
Re: How do regenerating hp? - by Toroi - 10.03.2017, 10:31
Re: How do regenerating hp? - by Pokemon64 - 10.03.2017, 10:58
Re: How do regenerating hp? - by Pokemon64 - 10.03.2017, 12:31

Forum Jump:


Users browsing this thread: 2 Guest(s)