Player Health problem
#1

Код:
new Float:hp;
GetPlayerHealth(playerid,hp);
SetPlayerHealth(playerid,hp+50);
i want to add 50 hp on his Health.
but this will set his HP to 50. tried several times.
thx
Reply
#2

bump
Reply
#3

can anyone help ?
Reply
#4

That should work .
Reply
#5

but it doesnt.
Reply
#6

Up. C'mon i couldnt be that none knows...
Reply
#7

http://forum.sa-mp.com/index.php?topic=67900.0

also that should work i guess
Reply
#8

Код:
GiveHealth(playerid, Float:Health)
{
  new Float: HP;
  GetPlayerHealth(playerid, HP);
  return SetPlayerHealth(playerid, floatadd(HP, Health);
}
This is the same but try this..
Put this anywhere and use GiveHealth(playerid, 25.0); in ur the cmd or sometin' to give (25.0, you can change..) health.
Reply
#9

it works Ryder
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)