17.09.2013, 14:57
An example:
pawn Код:
new
heal_Timer
;
// Where you start the timer
heal_Timer = SetTimer( ... );
// OR
heal_Timer = SetTimerEx( ... );
// Depending on what you want
// In the public of the Timer (either looping through connected players or passing parameter in SetTimerEx)
new
Float: hp
;
GetPlayerHealth( playerid, hp );
SetPlayerHealth( playerid, hp + 2 );
if( hp + 2 >= 100 ) KillTimer( heal_Timer );


