public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid){ if(Info[playerid][isJailed] == 1) { SetPlayerHealth(playerid, 100.0); //Reheal him back to 100HP (you can change it } return 1;}