mIRC Home    About    Download    Register    News    Help

Print Thread
#166458 11/12/06 05:31 AM
Joined: Jan 2006
Posts: 40
D
DjJax Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jan 2006
Posts: 40
i have this

alias kb {
.if $1 isop $chan { echo -a no podes }
mode # +b $1 | kick # $1 $2-
}

i wan banned too for example

/kb user user2

i doing this ,

/mode # +bb $1 $2 but doesnt work

any help please

thnx

DjJax #166466 11/12/06 10:20 AM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
alias kb {
  if (!$chan) { 
    echo -a no channel 
    return
  }
  if ($0 < 2) { 
    echo -a not enough parameters 
    return
  }
  var %i = 2, %n = $1 + 1, %r = $eval($+($,$calc(%n + 1),-),2)
  while ($eval($ $+ %i,2) != $null) && (%i <= %n) {
    if ($v1 isop $chan) { echo -a no podes }
    else { ban -k $chan $v1 2 %r }
    inc %i
  }
}


So that you can specify multiple users but still give a reason, I've made it so the first parameter tells the alias how many people you wish to kick.

Format is: /kb <number of people to kick> <users to kick> <reason>

- Untested.

hixxy #166487 11/12/06 02:52 PM
Joined: Jan 2006
Posts: 40
D
DjJax Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jan 2006
Posts: 40
thnx so much


Link Copied to Clipboard