19.04.2012, 02:17
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;
}