ON INPUT: Triggers when you enter text in an editbox in a channel window and press enter. You
should not check ($nick = $me )
You would want to remove the slashes from the code, and make this the end result:

Code:
on 1:INPUT:#alexander:{
  if ($1 == !add) {
    cs aop # add $2
    cs op # $2
  }
  elseif ($1 == !unadd) {
    cs aop # del $2
    cs deop # $2
  }
}