These are the pinouts for the most common transistors used in hobby and professional usage..you may have to consult the datasheet for the particular style pinouts.
TO-92
TO-3
TO-18
TO-5