23.08.2013, 13:27
Under the public
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?
Код:
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; }
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?