How to create ts3 plugin that plays a sound in the channel once u hit a the button for it

Hello, so I was wondering if anybody knows how to create a plugin that is basically like dojrp where if the dispatch hit the signal 100 button it plays the tone in the channel and i was wondering if anybody could help me with that.

RP Soundboard does this.