To use it as a weapon, nothing is allowed.
Guns -
- Real guns are generally not allowed.
- But, you may be allowed to play with a real miltary guns in designed areas. I remember going to some tourist place with Chinese army/police taught you how to use a gun (with a fee). But it was years ago.
- Paint ball game certainly cannot carry around and displayed in the city. It may be allowed in designed area to play paintball. I knew it become a popular game in Hong Kong China.
- The colorful Toy game as water gun are allowed... even on street... Very popular guns for Chinese kids, and you may see them holding one chasing each other at park.
Knife...
- There aren't particular rule as long as you are not displaying it to public. Well.. in certain Tourist area, you are certainly welcome to hold a 9.5 feet Chinese knife and walk around publicly such as 青龙偃月刀
http://baike.baidu.com/view/58203.htm. They are likely on sale for different type of knifes in the tourist store.