ok here is the full
Code:
On *:Join:#: { 
  if ($nick == $me) {
    .timerAV 0 10 autovoice $chan
  }
  else {
    mode $chan +v $nick
  }
}

On me:*:Part:#: { .timerAV off }
On @*:Text:*:#: { 
  if ($nick isreg $chan) mode $chan +v $nick  
}

alias autovoice {
  var %x = $nick($1,0)
  while (%x) {
    if (($nick($1,%x).idle >= 1200) && ($nick($1,%x) != $me)) {
      if ($me isop $1) timer 1 2 mode $v2 -v $nick($1,%x)
    }
    dec %x
  }
}


how do i use that one to that code you added since you said timers don't take multiple commands? how do i use it with those or how do i make it go on the run with that full code?