26.04.2015, 19:42
GetPlayerHealth will return the previous health the player had as it hasn't updated it yet. So get the health, subtract and check:
pawn Код:
new Float:iHealth;
GetPlayerHealth(i,iHealth);
GivePlayerHealth(i,-70.0);
if(iHealth - 70.0 <= 0.0)
{
Count++;
DOF2_SetInt(pFile(i),"Deaths",DOF2_GetInt(pFile(i),"Deaths")+1);
}