Btw, there is still a problem in there. You can't use $N in a while loop. It loses the value after the first time through, so you need to store it.
ah oke i didnt know that so its
Code:
;$1 = nummer of nicks to kick
alias randomkick {
var %nummerofkicks = $1
var %i = 1
while(%i <= %nummerofkicks) {
kick $chan $nick($chan,$rand(1,$nick($chan,0),a,o)
inc %i 1
}
}
:tongue:
oops i saw i forgot the $ whne i made $random to $rand