Chat disable for that player

Hello,
Does anyone know of a script that allows you to do /textchat and it disables the text chat for that player, it doesn’t stop them from being able to send messages just view them. And they do the command again and they can view the chat.

Many Thanks,
Kyle.