13.05.2012, 16:36
Quote:
Don't use this function after the player is already dead.
Try OnPlayerGiveDamage or OnPlayerTakeDamage |
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new Float:VBLife;
GetPlayerHealth(playerid,VBLife);
if(VBLife < 10)
Wounded[playerid] = 1;
DoDeath(playerid);
return true;
}