Convirion Posted April 1, 2007 Share 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. Link to comment
lil Toady Posted April 1, 2007 Share 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 } } Link to comment
Convirion Posted April 1, 2007 Author Share Posted April 1, 2007 Thanks for the fast reply, ill test it out byebye Link to comment
Convirion Posted April 1, 2007 Author Share 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... Link to comment
SamB Posted April 1, 2007 Share 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 } } Link to comment
lil Toady Posted April 1, 2007 Share 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 Link to comment
Recommended Posts