SA-MP Forums Archive
help please - 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 please (/showthread.php?tid=106095)



help please - kennyist - 01.11.2009

hi , im makeing a script for all the shops in the map and i want to buy something that heals you slowly over time is this possible?


Re: help please - Peter_Corneile - 01.11.2009

Set a Timer that gives you a certain amount of health after a certain amount of time


Re: help please - kennyist - 01.11.2009

Quote:
Originally Posted by ►Peter Corneile◄ [ideal-host.co.uk
]
Set a Timer that gives you a certain amount of health after a certain amount of time
yeerrr ... is there any tuts for timers or somin , im quite new to scripting.


Re: help please - introzen - 01.11.2009

pawn Код:
forward Health(playerid);
public Health(playerid)
{
new difference = GetPlayerHealth(playerid) + 10;
SetPlayerHealth(playerid,difference);
return 1;
}

// Set this timer where ever you want it to start...
SetTimerEx("Health",10000,1,"u",playerid);