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. Download: x-racetrack.map, x-biketrack.map, x-wankenstein.map
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 } } Do not PM me, im not going to read it anyway.
Convirion Posted April 1, 2007 Author Posted April 1, 2007 Thanks for the fast reply, ill test it out byebye Download: x-racetrack.map, x-biketrack.map, x-wankenstein.map
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... Download: x-racetrack.map, x-biketrack.map, x-wankenstein.map
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 } } MTA:SA servers at 0.15 GBP per slot. MySQL, FTP and control panel included
Convirion Posted April 1, 2007 Author Posted April 1, 2007 Doesn't work Download: x-racetrack.map, x-biketrack.map, x-wankenstein.map
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 Do not PM me, im not going to read it anyway.
Recommended Posts