13.09.2015, 13:12
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(issuerid != INVALID_PLAYER_ID) { if(IsPlayerInRangeOfPoint(playerid, range, x, y, z)) { SetPlayerHealth(playerid, GetPlayerHealth(playerid)+amount); SetPlayerHealth(issuerid, GetPlayerHealth(playerid)-amount); } } return 1; }