11.01.2010, 19:00
Код:
new Float:hp; GetPlayerHealth(playerid,hp); SetPlayerHealth(playerid,hp+50);
but this will set his HP to 50. tried several times.
thx
new Float:hp; GetPlayerHealth(playerid,hp); SetPlayerHealth(playerid,hp+50);
.
GiveHealth(playerid, Float:Health)
{
new Float: HP;
GetPlayerHealth(playerid, HP);
return SetPlayerHealth(playerid, floatadd(HP, Health);
}