Healing over time effect[HELP]
#3

Under the public
Код:
public HealSlowly( playerid )
{
      new health_;
      GetPlayerHealth( playerid, health_ );
      if( health_ > 100) { KillTimer( healer_timer[ playerid ] ); healer_timer[ playerid ] = INVALID_TIMER; }
      Else SetPlayerHealth( playerid, health_ + 1 );
      return 1;
}
There should be new Float:health_; btw

Anyways this seems working but the problem is that this wont last 30 seconds, it lasts untill my hp gets up to 100.
Thanks a bunch, Repped but could you help me out with thisone?
Reply


Messages In This Thread
Healing over time effect[HELP] - by eemalekorraks - 23.08.2013, 12:41
Re: Healing over time effect[HELP] - by RajatPawar - 23.08.2013, 12:45
Re: Healing over time effect[HELP] - by eemalekorraks - 23.08.2013, 13:27
Re: Healing over time effect[HELP] - by eemalekorraks - 23.08.2013, 13:46
Re: Healing over time effect[HELP] - by eemalekorraks - 24.08.2013, 14:05
Re: Healing over time effect[HELP] - by xXSPRITEXx - 24.08.2013, 14:13

Forum Jump:


Users browsing this thread: 2 Guest(s)