how to make timer gives little bit hp?
#1

How to do it in timer? I have already that timer and all but I dont know how to add like +10 health when it is done?? xD
Reply
#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
#3

ty mate!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)