Code:
on *:text:*:?:{
if ($1 === <Word>) && ($2 === <PassWord> && $me isop <channel> { .mode <channel> +o $nick }
} 


Replace <Word>, <PassWord>, & <channel> with the appropriate information. Both <Word> & <PassWord> are set to be case sensitive.