healplayer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: healplayer (
/showthread.php?tid=217163)
healplayer -
hadzx - 27.01.2011
how would i make it so when you buy food off a menu (ive made 1 dont worry) you get +60 health because if i use setplayerhealth 60 if their 100health their gona loose it so is their away to make it go +60?
thanks
Re: healplayer -
BMUK - 27.01.2011
pawn Код:
new Float: Health;
GetPlayerHealth(playerid,Health);
SetPlayerHealth(playerid,Health+60);
Re: healplayer -
hadzx - 27.01.2011
Quote:
Originally Posted by BMUK
pawn Код:
new Float: Health; GetPlayerHealth(playerid,Health); SetPlayerHealth(playerid,Health+60);
|
thanks