mIRC Home    About    Download    Register    News    Help

Print Thread
#117085 12/04/05 03:26 PM
Joined: Apr 2005
Posts: 31
V
Valo Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Apr 2005
Posts: 31
well heres what i wanna make but i dont know how... well... i wanna make something like bad word list and if someone says a word from list (like [censored] etc.) i kick him with reason "dont use bad words" can u help me plz on it?

#117086 12/04/05 04:44 PM
Joined: Mar 2005
Posts: 17
T
Pikka bird
Offline
Pikka bird
T
Joined: Mar 2005
Posts: 17
this is a badword code with a warning and then kick-ban!
Name your list "swear" and put it in your mirc folder.
Then paste this code in remotes on Scripts editor!
Code:
 
on @*:TEXT:*:#: {      
  if ($nick !isop #) {     
    var %i = 1                        
    while $gettok($read(swear.txt,1),%i,32) {                    
      if ($+(*,$v1,*) iswm $strip($1-)) {             
        set -u1800 %rl. [ $+ [ $address($nick,2) ] ] $calc( %rl. [ $+ [ $address($nick,2) ] ] + 1)          
        if (%rl. [ $+ [ $address($nick,2) ] ] == 1) {                     
          msg $chan $nick Dont use badwords pls-(Warning next time is ban)-
        }            
        if (%rl. [ $+ [ $address($nick,2) ] ] >= 2)  {              
          ban -ku3600 $chan $nick 2 The end is finally here!(Banned)- (2Total kicks: $+ %badwcount $+ | inc %badwcount 1          
        }          
      }       
      inc %i       
    }   
  }
}
 


Link Copied to Clipboard