How to make the HealthTimer?? Please? =)
#4

You would need a 1ms timer, and this is a server performance killer

Apart from this, you could use something like this in HealthUpdate:
Код:
new CurHealth;
GetPlayerHealth(playerid, CurHealth);
if(CurHealth <= OldHealth[playerid] - 40) ...
You also need an array for the OldHealth, else it will be overwritten for each player:

Код:
new Float:OldHealt[MAX_PLAYERS];
public OldHealthCheck(playerid)
{
GetPlayerHealth(playerid,OldHealth[playerid]);
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)