[HELP] Adding health to player - 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: [HELP] Adding health to player (
/showthread.php?tid=183921)
[HELP] Adding health to player -
Pooh7 - 17.10.2010
How to add health to player? Not set (SetPlayerHealth), but add...
Re: [HELP] Adding health to player -
TouR - 17.10.2010
new Float:health;
GetPlayerHealth(playerid,health)
SetPlayerHealth(playerid, health+the ammount you wanna add);
Re: [HELP] Adding health to player -
TheXIII - 17.10.2010
pawn Код:
public AddPlayerHealth( playerid, Float:Amount )
{
new Float:Health;
GetPlayerHealth(playerid, Health);
SetPlayerHealth (playerid, Health + Amount);
return floatround(Health + Amount);
}
+ Add forward to that.
Re: [HELP] Adding health to player -
Pooh7 - 17.10.2010
Thanks guys
Re: [HELP] Adding health to player -
Cameltoe - 17.10.2010
Quote:
Originally Posted by TheXIII
pawn Код:
public AddPlayerHealth( playerid, Float:Amount ) { new Float:Health; GetPlayerHealth(playerid, Health); SetPlayerHealth (playerid, Health + Amount); return floatround(Health + Amount); }
+ Add forward to that.
|
Why not use an stock? would be the same .. though you can't add an timer to an stock.