Plugin to restrict users from abusing chatroom

Can anyone help me build a plugin to restrict abuse of chatroom services by blacklisting users who have sent a predetermined number of chatroom messages .Admin can then access the blacklist and remove users from the blacklist at thier discretion.A log of the number of chatroom messages a user has sent will be kept and as soon as the user sends the maximum chatroom messages allowed he or she will be blocked .

An automatic customized message will be sent informing them of the block. i’m going to attach a snapshot of what the plugin will add