Help with Health regen
#1

this is the code i am using and it works fine but it allways sets the players health to 0 when the player spawns then starts to regen the health

Код:
public HealthRegen(playerid)
{
  new Float:health;
	GetPlayerHealth(playerid,health);
  if (health < 100)
  {
    SetPlayerHealth(playerid, health +1);
//    	SendClientMessage(playerid, COLOR_RED, "DEBUG :- HEALTH REGEN !");
  }
}
i dont want it to set it to 0 as i have health and armour saving

could someone please take a look and give me a clue on where i have gone wrong or even point me in the right direction i have searched and only found the GTO one which is what i based this on.
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)