If you want a script for the ability to quickly customise and add new styles to it, you can use something like this:

Code:
on *:input:*:{
  if (/* !iswm $1) && ($readini($mircini,text,commandchar) $+ * !iswm $1) && (!$ctrlenter) && (!$inpaste) {
    .msg $active $1-
    echo $color(own) -abfilmrt $+(<,$chr(3),4,$me,$chr(3),>) $1-
    haltdef 
  }
}