You're missing brackets { }
on *TEXT:hello:#: {
if ($nick == coolkid661) {
msg $chan Hello how are you
}
}
Though you can also do without them sometimes when your code block is on one line
on *TEXT:hello:#: if ($nick == coolkid661) msg $chan Hello how are you