Help with Health regen
#3

you can make a Timer


e.g: every minute (60*1000 = 60 sec)
Код:
SetTimer("health_regen",60*1000,true);
Код:
public health_regen(playerid)
{
	new Float:health;
	GetPlayerHealth(playerid,health);
 	if (health < 100) // 
 	{
  	SetPlayerHealth(playerid,health+1);
   	}
}
and don't forget to put
Код:
forward health_regen(playerid)
at the top of your script


-Vince
Reply


Messages In This Thread
Help with Health regen - by mister_ic3 - 17.12.2009, 13:21
Re: Help with Health regen - by admantis - 17.12.2009, 13:54
Re: Help with Health regen - by Vincent_r - 18.12.2009, 19:50
Re: Help with Health regen - by Calon - 18.12.2009, 20:10
Re: Help with Health regen - by Joe Staff - 18.12.2009, 20:11
Re: Help with Health regen - by Calon - 18.12.2009, 20:13
Re: Help with Health regen - by Vincent_r - 18.12.2009, 20:22
Re: Help with Health regen - by mister_ic3 - 20.12.2009, 19:31

Forum Jump:


Users browsing this thread: 1 Guest(s)