about hp
#1

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?
Reply
#2

new Floathealth = GetPlayerHealth(playerid);
SetPlayerHealth(playerid, phealth...);

so if you want an increase of 25% of total health then
SetPlayerHealth(playerid, phealth+25.0);
Reply
#3

thanks,solved
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)