20.02.2013, 12:10
Never mind got it working 

pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
if(GetIntVar(damagedid, "JustDied") == 1 || PlayerInfo[damagedid][pDied] == 1 || GetIntVar(damagedid, "LoggedInDead") == 1)
{
new Float:hp;
GetPlayerHealth(damagedid, hp);
SetPlayerHealth(damagedid, hp+amount);
}
return 1;
}