Jump to content

Double IP kicker


Convirion

Recommended Posts

Posted

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.

Posted
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
 }
}

Posted
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
 }
}

Posted

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...