Skip to content
MSN Addons

small

A TG007 community discussion started by samooh_2003.

Discussion 6 posts
Page 1 of 1
Open
Topic #4293 · 6 published posts · 1,029 views

on *:TEXT:*:*: { 
 if ($len($1) == 1) { 
   if ($nick isop #) halt
   if (%flood. [ $+ [ $nick ] ] == 3) { 
     kick $chan $nick plz Next time say \\ $+ %floodtext. [ $+ [ $nick ] ] $+ // in one line ?!! |[2 minutes Banned]|
     access $comchan($nick,1) add deny $address 2 : Flooding 
     unset %flood. [ $+ [ $nick ] ] 
     unset %floodtext. [ $+ [ $nick ] ] 
   } 
   if (%flood. [ $+ [ $nick ] ] == $null) { 
     set -u1000 %flood. [ $+ [ $nick ] ] 1 
     set -u1000 %floodtext. [ $+ [ $nick ] ] $1 
     return 
   } 
   else { 
     inc %flood. [ $+ [ $nick ] ] 
     set %floodtext. [ $+ [ $nick ] ] %floodtext. [ $+ [ $nick ] ] $+ $1 
     return 
   } 
 } 
}

 

this code to kick some one who talk just one word like this :

 

samooh: L

samooh: O

samooh:L

 

script kick samooh: plz say \\LOL// on one word next time but here its kick the person after the third one i need it to kick it in the third one with writting that third word in the kick hope u got me ?!!

on *:TEXT:*:#:{
 if ($1 == L) && (!%floodword $+ $nick) set %floodword $+ $nick $nick
 if ($1 == O) && (%floodword $+ $nick) { set %floodword2 $+ $nick $nick | unset %floodword $+ $nick }
 if ($1 == L) && (%floodword2 $+ $nick) { access $comchan($nick,1) add deny $address 2 | kick $chan $nick plz Next time say \\LOL// in one line ?!! [2 minutes Banned] | unset %floodword $+ $nick }
}

on *:TEXT:*:#: {
 if ($len($1-) == 1) {
   if ($nick isop #) { halt }
   set -u1000 %floodtext. [ $+ [ $nick ] ] %floodtext. [ $+ [ $nick ] ] $+ $1
   if ($len(%floodtext. [ $+ [ $nick ] ]) == 3) {
     kick $chan $nick plz Next time say \\ $+ %floodtext. [ $+ [ $nick ] ] $+ // in one line ?!! |[2 minutes Banned]|
     access $comchan($nick,1) add deny $address 2 : Flooding
     unset %floodtext. [ $+ [ $nick ] ]
   }
 }
 else {
   if (%floodtext. [ $+ [ $nick ] ]) { unset %floodtext. [ $+ [ $nick ] ] }
 }
}

your way was ok, just a bit confusing, but this should work better, hope it helps

Edited Aug 2, 2005 4:12 AM by Nimbus03

"the important thing was, that i had an onion on my belt, which was the style at the time"

lol, me and you posted at the same time, Nimbus.

lol what are the odds?

"the important thing was, that i had an onion on my belt, which was the style at the time"

thnx Nimbus03 & Warrior124 its working god now