13.03.2009, 14:34
You would need a 1ms timer, and this is a server performance killer 
Apart from this, you could use something like this in HealthUpdate:
You also need an array for the OldHealth, else it will be overwritten for each player:

Apart from this, you could use something like this in HealthUpdate:
Код:
new CurHealth; GetPlayerHealth(playerid, CurHealth); if(CurHealth <= OldHealth[playerid] - 40) ...
Код:
new Float:OldHealt[MAX_PLAYERS];
public OldHealthCheck(playerid)
{
GetPlayerHealth(playerid,OldHealth[playerid]);
}

