Jump to content

Swear filter.


Guest MB|CoveringFire

Recommended Posts

Ok, so the server that i admin has a pretty bad problem with kids coming on and just swearing at everything that moves. and i'm sick of it. I've seen a couple of servers that have a script which mutes people for 30 seconds when they swear/spam multiple messages.

Could someone point me in the right direction for these scripts? i've had a quick search around but can't find what i'm looking for :?

Also, Is it possible to have something that would permanently mute people? we have had people from a certain clan coming on the server and spamming/recruiting. Bans only work for a short period of time because they're all on Dynamic IP's. so i'm looking for something that would to mute anyone using the Clan tag as soon as they join. is there anything out there that can do that??

Cheers folks :D

Link to comment

Is it the myg0t clan? :lol:

And if you are an admin, aren't you able to mute them yourself (dunno if you can perma mute them tho). A script would be more useful since it would be less of a hassle for you, but I'm not 100% sure where to find one :?. I searched the forums and didn't find much, but maybe if you ask an admin on a server which has that script, they can tell you how to get it (if it's available).

Link to comment
Is it the myg0t clan? :lol:

And if you are an admin, aren't you able to mute them yourself (dunno if you can perma mute them tho). A script would be more useful since it would be less of a hassle for you, but I'm not 100% sure where to find one :?. I searched the forums and didn't find much, but maybe if you ask an admin on a server which has that script, they can tell you how to get it (if it's available).

Its not the myg0t, never heard of them :wink:

I've been watching over the remote admin about 18 hours a day, but i can't watch it _all_ the time (we all have to sleep :D) so it would be useful to not have to check whats going on every few minutes. leaves me more time to work (Read: browse the interweb :roll: )

Link to comment

on *:SIGNAL:mta.join:{

if ( $left ( $mta.nick( $1, $2 ), 5 ) == [tag] ) mta.mute $1 $2

}

it is something like that, maybe use "isin" it is up to you really, you could check a list from a file aswell and save a new tag to that list but that is the basics of it anyway (did this without using mIRC and without scripting for atleast a year, don't be suprised if it doesn't work)

Link to comment

theres a swear protector in scoobys script and also about perminant mute that can be done by saving the name of a player, or ip and then auto muting when they join this can be added with a command and removed by a command after the admin thinks they have served there time being muted :P will have a look later in to it for you, and will post what i come up with :P

Link to comment
;---------------------------------------------------- 
;---------------------------------------------------- 
;--------MB|Lagzilla's Permenant Mute Script--------- 
;---------------------------------------------------- 
;---------------------------------------------------- 
  
alias lag.pmute !return $iif($readini(lag.pmute.ini,PMUTE,$mta.nick($1,$2)),$v1,No) 
  
alias lag.getid { 
  var %a = 0 
  while (%a <= $mta.server($1).cmax) { 
    if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a 
    !inc %a 
  } 
  !return -1 
} 
  
on *:SIGNAL:mta.join: { 
  if ($lag.pmute($1,$2) == Yes) { 
    mta.mute $1 $2 
    mta.pm $1 $2 You have been permenantly muted! 
  } 
} 
  
  
on *:SIGNAL:mta.command:{ 
  var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$lag.getid($1,$4)),$2) 
  
  if ($3 == !pmute) { 
    if ($mta.level($1,$2) >= 1) { 
      !writeini -n lag.pmute.ini PMUTE $mta.nick($1,%a) Yes 
      mta.text $1 $mta.nick($1,%a) has been permentantly muted by Admin: $mta.nick($1,$2) 
    }  
    else mta.pm $1 $2 Insufficient Admin level! 
  } 
  elseif ($3 == !unpmute) { 
    if ($mta.level($1,$2) >= 1) { 
      !writeini -n lag.pmute.ini PMUTE $mta.nick($1,%a) No 
      mta.text $1 $mta.nick($1,%a) has had their perment mute removed by Admin: $mta.nick($1,$2) 
    }  
    else mta.pm $1 $2 Insufficient Admin level! 
  } 
} 

Link to comment

Thats my attempt lol it saves the ip with all the players nicks so if a player changes there nick its recorded next to there ip and if they use that nick they are muted again :P

!addmute

!remmute

on *:SIGNAL:mta.join: { 
  if ($slr.ip($1,%a) == $mta.ip($1,%a)) { 
    slr.checkpmute $1- 
  } 
  if ($readini(slrmute.ini,perminantmute,$mta.ip($1,$2)) == $null) { 
    !writeini -n slrmute.ini perminantmute $mta.ip($1,$2) $mta.nick($1,$2) 
  } 
  else { 
    if ($mta.nick($1,$2) !isin $readini(slrmute.ini,perminantmute,$mta.ip($1,$2))) { 
      if ($numtok($readini(slrmute.ini,perminantmute,$mta.ip($1,$2)),32) <= 10)  { 
        !writeini -n slrmute.ini perminantmute $mta.ip($1,$2) $readini(slrmute.ini,perminantmute,$mta.ip($1,$2)) $+ , $mta.nick($1,$2) 
      }   
    } 
  } 
} 
on *:SIGNAL:mta.command:{ 
  var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1))     
  if ($3 == !addmute) { 
    if ($4 == $null) mta.pm $1 $2 Error: !addmute <nick> 
    elseif ($mta.level($1,$2) < 4) mta.pm $1 $2 Error: Incorrect Admin Level 
    else { 
      if ($mta.level($1,$2) >= 4) { 
        !writeini -n slrmute.ini perminantmute $mta.ip($1,$2) $readini(slrmute.ini,perminantmute,$mta.ip($1,$2)) $+ , $mta.nick($1,$2) 
        !writeini -n slrmute.ini perminantmute $mta.nick($1,%a) $+ muted yes 
        mta.pm $1 $2 $mta.nick($1,%a) Has Been Added To The Perminant Mute File.   
      } 
    } 
  } 
  if ($3 == !remmute) { 
    if ($4 == $null) mta.pm $1 $2 Error: !remmute <nick> 
    elseif ($mta.level($1,$2) < 4) mta.pm $1 $2 Error: Incorrect Admin Level 
    else { 
      if ($mta.level($1,$2) >= 4) { 
        !remini slrmute.ini perminantmute $mta.ip($1,%a) 
        !remini slrmute.ini perminantmute $mta.nick($1,%a) $+ muted  
        mta.pm $1 $2 $mta.nick($1,%a) Has Been Removed From The Perminant Mute File.   
      } 
    } 
  } 
 } 
on *:SIGNAL:mta.nick { 
  if ($slr.ip($1,%a) == $mta.ip($1,%a)) { 
    if ($readini(slrmute.ini,perminantmute,$mta.ip($1,$2)) == $null) { 
      !writeini -n slrmute.ini perminantmute $mta.ip($1,$2) $mta.nick($1,$2) 
    } 
    else { 
      if ($mta.nick($1,$2) !isin $readini(slrmute.ini,perminantmute,$mta.ip($1,$2))) { 
        if ($numtok($readini(slrmute.ini,perminantmute,$mta.ip($1,$2)),32) <= 10)  { 
          !writeini -n slrmute.ini perminantmute $mta.ip($1,$2) $readini(slrmute.ini,perminantmute,$mta.ip($1,$2)) $+ , $mta.nick($1,$2) 
        }   
      } 
    } 
  } 
} 
alias slr.ip !return $readini(slrmute.ini,perminantmute,$mta.ip($1,$2)) 
alias slr.muted !return $readini(slrmute.ini,perminantmute,$mta.nick($1,$2) $+ muted) 
  
alias slr.checkpmute { 
  var %a = $iif(($4 == $null),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1)) 
  if ($slr.muted($1,%a) == yes) && ($mta.nick($1,%a) isin $slr.ip($1,%a)) { 
    mta.text $1 Perminantly Muting $mta.nick($1,%a)  
    mta.mute $1 %a  
  } 
} 

Link to comment

Added a few checks and on nick change singal.....also sorted a few error's, but hey it's my first script! :D

;---------------------------------------------------- 
;---------------------------------------------------- 
;--------MB|Lagzilla's Permenant Mute Script--------- 
;---------------------------------------------------- 
;---------------------------------------------------- 
  
alias lag.pmute !return $iif($readini(lag.pmute.ini,PMUTE,$mta.nick($1,$2)),$v1,No) 
  
alias lag.getid { 
  var %a = 0 
  while (%a <= $mta.server($1).cmax) { 
    if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a 
    !inc %a 
  } 
  !return -1 
} 
  
on *:SIGNAL:mta.join: { 
  if ($lag.pmute($1,$2) == Yes) { 
    mta.mute $1 $2 
    mta.pm $1 $2 You have been permenantly muted! 
  } 
} 
  
on *:SIGNAL:mta.nick: { 
  if ($lag.pmute($1,$2) == Yes) { 
    mta.mute $1 $2 
    mta.pm $1 $2 You have been permenantly muted! 
  } 
} 
  
on *:SIGNAL:mta.connect:{ 
  mta.text $1 Permenant Mute Script By: MB|Lagzilla Connected! 
} 
  
on *:SIGNAL:mta.command:{ 
  var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$lag.getid($1,$4)),$2) 
  if ($3 == !pmute) { 
    if ($mta.level($1,$2) >= 1) { 
      if ($mta.nick($1,%a) != $mta.nick($1,$2)) { 
        if ($lag.pmute($1,%a) != Yes) { 
          !writeini -n lag.pmute.ini PMUTE $mta.nick($1,%a) Yes 
          mta.text $1 $mta.nick($1,%a) has been permentantly muted by Admin: $mta.nick($1,$2) 
          mta.mute $1 %a 
        } 
        else mta.pm $1 $2 $mta.nick($1,%a) is all ready permenantly muted! 
      } 
      else mta.pm $1 $2 You cannot permenantly mute yourself! 
    }  
    else mta.pm $1 $2 Insufficient Admin level! 
  } 
  elseif ($3 == !unpmute) { 
    if ($mta.level($1,$2) >= 1) { 
      if ($mta.nick($1,%a) != $mta.nick($1,$2)) { 
        if ($lag.pmute($1,%a) != No) { 
          !writeini -n lag.pmute.ini PMUTE $mta.nick($1,%a) No 
          mta.text $1 $mta.nick($1,%a) has had their perment mute removed by Admin: $mta.nick($1,$2) 
          mta.unmute $1 %a 
        } 
        else mta.pm $1 $2 $mta.nick($1,%a) is not permenantly muted! 
      } 
      else mta.pm $1 $2 You cannot use this command on yourself! 
    }  
    else mta.pm $1 $2 Insufficient Admin level! 
  } 
} 

Link to comment

wonder why do you all create your own getid script if it's in mtama (mta.getid) :|

i'd suggest you to store IPs instead of nicks for permanent mute cause they can disconnect, change their nick, reconnect and they're unmuted. And as you know if somebody is muted he can't change his nick being in game ;)

Link to comment

By IP I think? :roll:

;---------------------------------------------------- 
;---------------------------------------------------- 
;--------MB|Lagzilla's Permenant Mute Script--------- 
;---------------------------------------------------- 
;---------------------------------------------------- 
  
alias lag.pmute !return $iif($readini(lag.pmute.ini,PMUTE,$mta.ip($1,$2)),$v1,No) 
  
alias lag.getid { 
  var %a = 0 
  while (%a <= $mta.server($1).cmax) { 
    if ($+(*,$2,*) iswm $mta.nick($1,%a)) !return %a 
    !inc %a 
  } 
  !return -1 
} 
  
on *:SIGNAL:mta.join: { 
  if ($lag.pmute($1,$2) == Yes) { 
    mta.mute $1 $2 
    mta.pm $1 $2 You have been permenantly muted! 
  } 
} 
  
on *:SIGNAL:mta.connect:{ 
  mta.text $1 Permenant Mute Script By: MB|Lagzilla Connected! 
} 
  
on *:SIGNAL:mta.command:{ 
  var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$lag.getid($1,$4)),$2) 
  if ($3 == !pmute) { 
    if ($mta.level($1,$2) >= 4) { 
      if ($mta.ip($1,%a) != $mta.ip($1,$2)) { 
        if ($lag.pmute($1,%a) != Yes) { 
          !writeini -n lag.pmute.ini PMUTE $mta.ip($1,%a) Yes 
          mta.text $1 $mta.nick($1,%a) has been permentantly muted by Admin: $mta.nick($1,$2) 
          mta.mute $1 %a 
        } 
        else mta.pm $1 $2 $mta.nick($1,%a) is all ready permenantly muted! 
      } 
      else mta.pm $1 $2 You cannot permenantly mute yourself! 
    }  
    else mta.pm $1 $2 Insufficient Admin level! 
  } 
  elseif ($3 == !unpmute) { 
    if ($mta.level($1,$2) >= 4) { 
      if ($mta.ip($1,%a) != $mta.ip($1,$2)) { 
        if ($lag.pmute($1,%a) != No) { 
          !writeini -n lag.pmute.ini PMUTE $mta.ip($1,%a) No 
          mta.text $1 $mta.nick($1,%a) has had their perment mute removed by Admin: $mta.nick($1,$2) 
          mta.unmute $1 %a 
        } 
        else mta.pm $1 $2 $mta.nick($1,%a) is not permenantly muted! 
      } 
      else mta.pm $1 $2 You cannot use this command on yourself! 
    }  
    else mta.pm $1 $2 Insufficient Admin level! 
  } 
} 

Link to comment
  • Recently Browsing   0 members

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