This should work to ban all the users in the channel except ops.
Code:
on $@*:text:/\.banall/iS:#raku:{
  if ($nick isop #) {
    var %i = 1, %n, %- = $nick(#,0,a,o)
    while ($nick(#,%i,a,o)) {
      %n = %n $v1
      if (%i = %-) || ($numtok(%n,32) == $modespl) {
        mode # $+(+,$str(b,$v1)) $address(%n,2)
        %n = ""
      }
      inc %i
    }
  }
}
I've taken the liberty of banning the type two address instead, which is the host.