06.01.2012, 19:14
Create a timer with a loop through all players and check their health, if it's above 90, set it to 90. Like this:
pawn Код:
forward HealthTimer();
//Under OnGameModeInit
SetTimer("HealthTimer",1000,1);
//Somewhere else
public HealthTimer()
{
for (new i=0;i<MAX_PLAYERS;i++)
{
if (IsPlayerConnected(i))
{
new Float:health;
GetPlayerHealth(i, health);
if (health > 90) SetPlayerHealth(i, 90);
}
}
}