27.10.2012, 07:34
try this
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
if( issuerid == INVALID_PLAYER_ID)
{
GetPlayerHealth( playerid, HealthSave[ playerid ] );
SetPlayerHealth( playerid, HealthSave[ playerid ]+amount );
}
return 1;
}