21.10.2009, 12:23
On top of your script under the includes:
Under OnGameModeInit
Somewhere in your script:
NOTE: I didn't test this but it should work fine i think
EDIT: Damn you posted it while I was typing it :P
pawn Код:
forward hpupdate();
pawn Код:
SetTimer("hpupdate", 10000, true);
pawn Код:
public hpupdate()
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new Float: health;
GetPlayerHealth(i, health);
SetPlayerHealth(i, health-1);
}
}
}
EDIT: Damn you posted it while I was typing it :P