health - 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: health (
/showthread.php?tid=86585)
health -
radi - 15.07.2009
how can i make from this line
pawn Код:
SetPlayerHealth(playerid, 100);
that it will not give instant 100 hp but 25 hp each time
so if i type /usedrugs it will give me 25 hp
and not instant 100 hp
so i mean my hp is 5 i type /usedrugs so i get 25 hp more so i get 30 hp
en then if i type it my hp will go to 55 en then if i type 80 en then if i type 95
Re: health -
StrickenKid - 15.07.2009
Код:
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health+25);
Re: health -
radi - 15.07.2009
thanks dude