SA-MP Forums Archive
hey Health Help Needed - 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: hey Health Help Needed (/showthread.php?tid=509286)



hey Health Help Needed - ReD_HunTeR - 26.04.2014

hi need some health helps...

How i set Player's health more than 500?, i mean how i can make player health to more then 100?.


Re: hey Health Help Needed - PrivatioBoni - 26.04.2014

SetPlayerHealth(playerid, [value])

https://sampwiki.blast.hk/wiki/SetPlayerHealth

Quote:

The value to set the player's health to. Max health that can be displayed in the HUD is 100, though higher values are valid.




Re: hey Health Help Needed - ReD_HunTeR - 26.04.2014

you don't understand what i mean...
I mean how i can make player health more than 100?


Re: hey Health Help Needed - PrivatioBoni - 26.04.2014

I do understand what you mean.

Read my reply.

Add the value you want. It's not difficult, to be frank.

If you mean something else, say it. I can't read your mind.


Re: hey Health Help Needed - TonyII - 26.04.2014

If you mean something else explain it properly, PrivatioBoni provided the correct answer to your question.


Re: hey Health Help Needed - Sojo12 - 26.04.2014

Do what Private say you can set whatever value you want.When you set for god mode dont you set to 9999999 or somwthing like this.Same for 500 hp.SIMPLE!


Re: hey Health Help Needed - Konstantinos - 26.04.2014

Read the quote PrivatioBoni posted:

Quote:

The value to set the player's health to. Max health that can be displayed in the HUD is 100, though higher values are valid.



Re: hey Health Help Needed - ReD_HunTeR - 26.04.2014

hmm if i set it to 500 and player got 500 damage then the player will died?


Re: hey Health Help Needed - Bingo - 26.04.2014

Just use
pawn Код:
SetPlayerHealth(playerid, 500)
If you have anti health hack then maybe i am not sure you or the player might get ban.


Re: hey Health Help Needed - TonyII - 26.04.2014

Quote:
Originally Posted by BlackBomb
Посмотреть сообщение
hmm if i set it to 500 and player got 500 damage then the player will died?
Ofcourse, what do you expect?