Skip to content
MSN

Kick

A TG007 community discussion started by Hatchetboi.

Discussion 2 posts
Page 1 of 1
Open
Topic #527 · 2 published posts · 387 views

Ok, it has beeen a long time since i scripted. I only have this

 

on *:TEXT:*word*:*: {
/kick $chan $nick Dont use that word.
}

 

I dont understand how to keep track of everyone and how many times they use a word.

Thanks for the help

Credit to Nickman:

alias warn {
 if ($1 == $null) {
   echo -a  $+ $rand(2,9) $+ You cannot leave the username blank.
 }
 if ($1 != $me) {
   if ($get.mode($1) != .) || ($get.mode($1) != @) && ($get.mode($me) == @) || ($get.mode($me) == .) {
     if (%warn == $null) && (%nickn == $null) {
       /set %warn 1
       /set %nickn $1
       msg $chan $replace($1,>,Guest_) $+ , you've been warned by $replace($msn.decode($me),>,Guest_) $+ .  Next time will result in ban.
       echo -a  $+ $rand(2,9) $+ You have warned $replace($msn.decode($1),>,Guest_) %warn time.
     }
     else {
       if (%warn == 1) && (%nickn == $1) {
         msg $chan You were already warned to stop $replace($msn.decode($1),>,Guest_) $+ .
         /access $chan add deny *! $+ $gate($1) 60 : $+ Warned
         /kick $chan $1 You were warned to stop. Banned for 60 minutes.
         echo -a  $+ $rand(2,9) $+ You have banned $replace($msn.decode($1),>,Guest_) $+ .
         /unset %warn
         /unset %nickn
       }
     }
   }
 }
}

alias clearwarn {
 /unset %warn
 /unset %nickn
 /echo -a  $+ $rand(2,9) $+ Warns have been cleared.
}

Only works for the Vincula connection because of the $msn.decode.

Edited May 22, 2004 1:42 PM by X-Fusion