how to repeat a timer 15times
#6

In command
pawn Код:
Regernation(playerid,15);
pawn Код:
forward Regernation(playerid,times);
public Regernation(playerid,times)
{
    if(times)
    {
        new Float:Health;
        GetPlayerHealth(playerid, Health);
        if(Health > 100) SetPlayerHealth(playerid, 100.0);
        else SetPlayerHealth(playerid, Health + 2.0);
        SetTimerEx("Regernation",2000,false,"dd",playerid,times-1);
    }
    return 1;
}
Reply


Messages In This Thread
how to repeat a timer 15times - by MWhite_005 - 15.07.2011, 17:43
Re: how to repeat a timer 15times - by Tigerkiller - 15.07.2011, 17:46
Re: how to repeat a timer 15times - by MWhite_005 - 15.07.2011, 18:01
Re: how to repeat a timer 15times - by Seven_of_Nine - 15.07.2011, 19:09
Re: how to repeat a timer 15times - by Roko_foko - 15.07.2011, 19:13
Re: how to repeat a timer 15times - by Jefff - 15.07.2011, 19:14
AW: Re: how to repeat a timer 15times - by Nero_3D - 15.07.2011, 22:08
Re: how to repeat a timer 15times - by MWhite_005 - 15.07.2011, 22:19
Re: how to repeat a timer 15times - by MWhite_005 - 15.07.2011, 22:27
Re: how to repeat a timer 15times - by Adil - 15.07.2011, 22:31

Forum Jump:


Users browsing this thread: 5 Guest(s)