Convirion Posted April 1, 2007 Posted April 1, 2007 Hi all, I Tryed to scripts a double ip kicker but I couln't make a start. Script: Onjoin: When someone joins: Check if the ip is already in the server yes: kick the one that joined. no: dont kick him. hope you guys understand what I mean.
lil Toady Posted April 1, 2007 Posted April 1, 2007 on *:SIGNAL:mta.join:{ var %a = 0 while (%a <= $mta.server($1).cmax) { if ($mta.ip($1,%a) == $mta.ip($1,$2)) { mta.text $1 $mta.nick($1,$2) $+ 's IP matches $mta.nick($1,%a) $+ 's so he will be kicked. mta.kick $1 $2 } !inc %a } }
Convirion Posted April 1, 2007 Author Posted April 1, 2007 Thanks for the fast reply, ill test it out byebye
Convirion Posted April 1, 2007 Author Posted April 1, 2007 hey lil, i tested it but gues what, if a guy called rob joint, it says that rob has the same ip as rob so he ll be kicked...
SamB Posted April 1, 2007 Posted April 1, 2007 on *:SIGNAL:mta.join:{ var %a = 0 while (%a <= $mta.server($1).cmax) { if(%a != $2) { if ($mta.ip($1,%a) == $mta.ip($1,$2)) { mta.text $1 $mta.nick($1,$2) $+ 's IP matches $mta.nick($1,%a) $+ 's so he will be kicked. mta.kick $1 $2 } } !inc %a } }
lil Toady Posted April 1, 2007 Posted April 1, 2007 on *:SIGNAL:mta.join:{ var %a = 0 while (%a <= $mta.server($1).cmax) { if (%a != $2) { if ($mta.ip($1,%a) == $mta.ip($1,$2)) { mta.text $1 $mta.nick($1,$2) $+ 's IP matches $mta.nick($1,%a) $+ 's so he will be kicked. mta.kick $1 $2 !halt } } !inc %a } } if this one doesnt work i believe u're doing something wrong
Recommended Posts