19.03.2012, 21:04
Add this timer under OnGameModeInit() EDIT looks like the guy above me was quicker
paste this somewhere outside of any callback
pawn Код:
SetTimer("health", 1000, true); //this sets a timer to repeat every 1 seconds
pawn Код:
forward health();
public health()
{
for(new i =0; i<MAX_PLAYERS; i++)
{
new Float:h = GetPlayerHealth(i);
if(health =< 20)
{
SetPlayerHealth(i, health-5);
}
}
return 1;
}