SA-MP Forums Archive
Additional HP. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Additional HP. (/showthread.php?tid=601656)



Additional HP. - LSNKevin - 24.02.2016

To give additional health onto the HP they already got. So example; he got 100 hp. i give him 35 hp because he used weed.

so its just SetPlayerHealth(playerid, +35); right?


Re: Additional HP. - alexanderjb918 - 24.02.2016

Correct.


Re: Additional HP. - CalvinC - 24.02.2016

You have to do it like this:
Код:
new
    Float:health
;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health + 35);