pin out is very easy to determine, take a multimeter and use diode check, that will get you the base pin, then for the collector and emmitor take a generic AAA and a low value resistor, (10K for base aswell),
pull the base down with a 10K to the negative, put your first guess for the emitter to the battery positive and your first guess for the collector to battery negative through that low value resistor, if its right you will get a small voltage above battery negative on the resistor if its wrong, no voltage
(otherwise if you have a cheapo $10 multimeter they have a transistor tester that you can use to work it out)