[z2004] Use bitmask for chat tag.

Thanks to stfx for porting

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>

(cleaned version of 86fb574)

(based on commit [s1605] - 23b7c57)