about 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: about hp (
/showthread.php?tid=126295)
about hp -
adytzu32 - 07.02.2010
hi,i'm thinking about to increase a player health with...25%.
So if the player has Xhp to increase his hp only with Y hp(an example:id 0 has 25% and i want to increase it with 25%.It can be posible?
Re: about hp -
mansonh - 07.02.2010
new Float
![Tongue](images/smilies/razz.gif)
health = GetPlayerHealth(playerid);
SetPlayerHealth(playerid, phealth...);
so if you want an increase of 25% of total health then
SetPlayerHealth(playerid, phealth+25.0);
Re: about hp -
adytzu32 - 07.02.2010
thanks,solved