Pawn Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(weaponid == 24 ) // Detecta se a arma equipada é uma eagle { new Float:Life = GetPlayerHealth(playerid, Life); SetPlayerHealth(playerid, Life /2); // Diminue a vida pela metade } return 1; }