help please
#1

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?
Reply
#2

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

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.
Reply
#4

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)