public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid){ new Float:hp; GetPlayerHealth(playerid,hp); new Float:damage = (amount > hp) ? hp : amount; // this is the value you need// ... return 1;}