To make a pipe....

1) Don't use foil/plastic/painted objects/things that melt or ignite as a bowl.
2) Be creative.
3) If it doesn't work, be more creative.

Only rules to making smoking devices are to not use anything that will produce extra smoke or add other chemicals to the smoke when you're lighting it. To figure out if something will do that, burn it first. If it smells or melts or burns, then don't use it.

Making things to smoke out of is one of the funnest parts of smoking. If it works, sweet...you got high using your own creativity and building skills. Which is a better feeling than going out and buying a pipe for $50 and smoking out of it.