making the player shoot

hello i have search all over the internet for three week now and i cant find what want so i was wondering if anyone could tell me how to make a player shoot bullets out of a gun

Sharky’s demo in the link below is also really good.

http://blenderartists.org/forum/showthread.php?t=201864&page=1

awesome thanks