The first one you make like this:
on *:TEXT:hello:#:{
/msg $chan hello $nick
}
The next one you make like this:
on *:TEXT:!akick*:#:{
if ($nick == $me) {
.ban $chan [color:red]$2[/color]
.kick $chan [color:red]$2[/color] [color:blue]$3-[/color]
}
}
$2 Is the nick you want to ban/kick and
$3- is the reason like this: !akick Joey Out you go