Skip to content
MSN

Mass Kick

A TG007 community discussion started by GTA.

Discussion 3 posts
Page 1 of 1
Open
Topic #1158 · 3 published posts · 508 views

Like, i keep getting alot of scripts and stuff in my msn chatroom and theres a couple of times when i wanted to close my room, i can't they keep coming back, i have a script with a mass kick, but it disconnects and stuff.

 

How do I make it stop disconnecting?

 

The code I have for mass kick is:

 

{ access # add deny *!*@*$* | set %i $nick(#,0) | :next | if $nick(#,%i) != $me kick # $nick(#,%i) %kr | dec %i | if %i > 0 goto next }

 

please tell me how to fix this problem taz.gif

use ;

 

var %room 1

while($nicks($chan,0))

 

its a bit better/faster kinda loops

on me:*:join:#:hop #

Why would you want to mass kick anyway? Sounds to me like you want to be disruptive. blahblah.gif

Either way, you can use this:

{
 var %a = 1
 while (%a <= $nick(#,0)) {
   if ($nick(#,%a) == $me) inc %a
   var %b = $+(%b,$chr(44),$nick(#,%a))
   inc %a
 }
 kick # %b
}

Kicks em all in one go