Pleading the 5th Amendment can most certainly be used in civil cases, where testimony might lead to a criminal case. A judge can draw adverse inferences on the defendant but it depends on the questions asked by the prosecutor.