how to make timer gives little bit hp?
#2

pawn Код:
SetTimer("UpdateHealth",1000*60,true);

forward UpdateHealth();
public UpdateHealth()
{
    for(new playerid = 0; playerid != MAX_PLAYERS; playerid++)
    {
        if(!IsPlayerConnected(playerid)) continue;
        new Float:Health;
        GetPlayerHealth(playerid,Health);
        SetPlayerHealth(playerid,Health+10);
    }
    return 1;
}
Reply


Messages In This Thread
how to make timer gives little bit hp? - by the_zande - 24.04.2011, 20:58
Re: how to make timer gives little bit hp? - by Raimis_R - 24.04.2011, 21:52
Re: how to make timer gives little bit hp? - by the_zande - 24.04.2011, 23:37

Forum Jump:


Users browsing this thread: 2 Guest(s)