For water-based (latex) paints, soak the shirt in warm water and heavy detergent before you ultimately throw it in the washing machine. Water-based paint is a lot easier to remove from clothes, but again, you have to move fast. If it dries, you're out of luck.