Jump to content

addban all servers


(OVG)Santi

Recommended Posts

tell me is it 0.5 or SA and give me ur ban commands

Is for mta:sa

var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getnick($1,$4)),$2)
 if ($3 == !addban) {
   if ($4) {
     if ($readini($mta.dir $+ admin.ini,admin,$mta.nick($1,$2)) >=  {
       mta.addban $1 $mta.ip($1,%a)
       mta.text $1 The nick $mta.nick($1,%a) is banned! Reason: $5-
     }
     else mta.pm $1 $2 You need be admin level 8 or more for use this command!
   }
 }
}

Here is the scrip if you can modify this for when i type (or other admin lvl 8 or more) !addban this ban the he/she in all of my servers thanks you!

is you found any error in this scripts dont worry later i will check

Link to comment
on *:SIGNAL:mta.command:{
 var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getnick($1,$4)),$2)
 if ($3 == !addban) {
   if ($readini($mta.dir $+ admin.ini,admin,$mta.nick($1,$2)) >=  {
     if (%a == -1) mta.msg $1 $2 Error - Absent ID
     elseif (%a == $2) mta.msg $1 $2 Error - Can't ban yourself
     elseif (($4) && (*.*.*.* iswm $4)) {
       var %b = 1
       while (%b <=  {
         if ($exists($mta.dir $+ %b.ini)) mta.addban %b $mta.ip($1,%a)
         !inc %b
       }
       mta.text $1 The nick $mta.nick($1,%a) is banned! Reason: $5-
     }
   }
   else mta.pm $1 $2 You need be admin level 8 or more for use this command!
 }
}

Link to comment
on *:SIGNAL:mta.command:{
 var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$mta.getnick($1,$4)),$2)
 if ($3 == !addban) {
   if ($readini($mta.dir $+ admin.ini,admin,$mta.nick($1,$2)) >=  {
     if (%a == -1) mta.msg $1 $2 Error - Absent ID
     elseif (%a == $2) mta.msg $1 $2 Error - Can't ban yourself
     elseif (($4) && (*.*.*.* iswm $4)) {
       var %b = 1
       while (%b <=  {
         if ($exists($mta.dir $+ %b.ini)) mta.addban %b $mta.ip($1,%a)
         !inc %b
       }
       mta.text $1 The nick $mta.nick($1,%a) is banned! Reason: $5-
     }
   }
   else mta.pm $1 $2 You need be admin level 8 or more for use this command!
 }
}

thanks you for you help!!! for all the times!

Link to comment
  • 2 weeks later...

i write the scrip bad or the scrip dont work????

on *:SIGNAL:mta.nick:{
 if ($mta.nick($1,$2) == $mta.nick($1,$2)) {
   if ($mta.nick($1,$2) == Player) {
     if ($mta.dead($1,$2) == $false) {     
       mta.pm $1 $2 Please change your nick now! press esc and go to settings
       mta.freeze $1 $2           
     }
     else mta.pm $1 $2 Please change your nick now! press esc and go to settings
   }
   else {
     mta.unfreeze $1 $2
     !.timer 1 10 mta.unfreeze $1 $2        
   }  
 }
}

thx again

Link to comment
  • Recently Browsing   0 members

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