slowly increase 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)
+--- Thread: slowly increase health (
/showthread.php?tid=492960)
slowly increase health -
Swisher - 06.02.2014
I am currently setting the players health to 29 .
I want to slowly increase the players 29 not give it all at once.
{
new Float:Health;
GetPlayerHealth(playerid, Health);
SetPlayerHealth(playerid, Health+29);
SetPlayerWeather(playerid, -66);
PlantedWeed[playerid]-=1;
UsedWeed[playerid] = 1;
wBusy[playerid] = 1;
SetTimerEx("ClearDrugs", 60000*2, false, "d", playerid);
Re: slowly increase health -
Don_Cage - 06.02.2014
make a timer to increase the health example every 2 seconds and then make a check if the players health is 29, if it is. Stop the timer
Re: slowly increase health -
Swisher - 06.02.2014
example?