[Ajuda] Vida maxima.
#5

pawn Code:
#define MaxVida 15

public OnGameModeInit() {
    SetTimer("Vida", 1000, true);
    return true;
}

forward Vida();
public Vida() {
    for(new i, j = MAX_PLAYERS; i != j; ++i) {
        new Float:h[1];
        GetPlayerHealth(i, h[0]);
        if(h[0] > MaxVida)
            SetPlayerHealth(i, MaxVida);
    }
    return true;
}
Reply


Messages In This Thread
[Ajuda] Vida maxima. - by Felipe_Freeze - 19.04.2012, 01:17
Re: [Ajuda] Vida maxima. - by Joker_OutLock - 19.04.2012, 01:28
Re: [Ajuda] Vida maxima. - by diablopk - 19.04.2012, 01:29
Re: [Ajuda] Vida maxima. - by Felipe_Freeze - 19.04.2012, 01:36
Re: [Ajuda] Vida maxima. - by zbt - 19.04.2012, 02:17

Forum Jump:


Users browsing this thread: 1 Guest(s)