01.11.2009, 14:31
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?
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 |
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);