Giving players health,
#1

Hey Im not no noob. I know how to give health but I want to give players +Health like for example


pawn Код:
SetPlayerHealth(playerid,+10);

But that does not work. Can anyone show me how to do this?
Reply
#2

Get their health using GetPlayerHealth:

pawn Код:
new Float: Health;
GetPlayerHealth ( playerid, Health );
Then increase it like so using SetPlayerHealth:

pawn Код:
SetPlayerHealth ( playerid, Health + 10.0 );
Reply


Forum Jump:


Users browsing this thread: