This is a help forum, not a forum to place orders. You need to put some work in. You already saw this script:
https://forums.mirc.com/ubbthreads.php/topics/244453/Re:_Command_that_adds/removes_#Post244453, it works perfectly. The usage was given in the original post. If
you can't get it working
you need to figure out why, or provide
reproducible steps to show that it isn't working.