mIRC Home    About    Download    Register    News    Help

Print Thread
Help For Op Control Script #215419 15/09/09 10:27 PM
Joined: Sep 2009
Posts: 2
D
Diaenja Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Sep 2009
Posts: 2
i'm write this script but not runing
Code:
on *:join:#:{
  if ( $chan == $1 ) {
    /timeradmin 1 10 /Kontrol $chan
  }
}
alias Kontrol {
  if ( $nick isop $1 ) {
    /msg $1 thx
  }
  else {
    part $1
  }
}

my bot join any channel and anyone give me op in 10 sec
if him dont give op in 10 sec part else none
(sorry for bad english )

Thanks!

Re: Help For Op Control Script [Re: Diaenja] #215420 15/09/09 10:32 PM
Joined: Dec 2002
Posts: 2,016
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,016

Try this.

Code:

on ME:*:JOIN:#: {
  timeradmin 1 10 Kontrol $chan
}
alias Kontrol {
  if ($me isop $1) {
    msg $1 thx
  }
  else {
    part $1
  }
}