#1

Hello i am making a food script with the command /eat
then a dialog apearse witch food i will, an now i downt know how to like command GivePlayerMoney how i can make like GivePlayerHealt (because there is setplayer health but that is not so real for my script)

Please help
Reply
#2

Well, you'll have to do it with SetPlayerHealth function. Something like:
pawn Код:
new Float:pHealth;
GetPlayerHealth(playerid, pHealth);
SetPlayerHealth(playerid, pHealth + 30);
Something like that.
Reply
#3

i will try this
Reply
#4

or u need to make timer to update ur health one every 3 or 4 secount for 15 health
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)