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
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.
Sign in to reply or start a new topic where your account has permission.