17.12.2009, 13:21
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
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.
Код:
public HealthRegen(playerid)
{
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 100)
{
SetPlayerHealth(playerid, health +1);
// SendClientMessage(playerid, COLOR_RED, "DEBUG :- HEALTH REGEN !");
}
}
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.



nevermind i will try to sort it out thanks again