mIRC Homepage
Posted By: Majestic Flood protect? - 11/07/03 08:11 AM
the user can say "!test" everytime.
what is wrong?

on 1:TEXT:*:#: {
if (!%flood. $+ $nick) {
if ($1 == !test) { /msg test message | set -u30 %flood. $+ $nick 1 }
}
}
Posted By: KingTomato Re: Flood protect? - 11/07/03 08:12 AM
your use of "%flood. $+ $nick"
the $+ %nick isn't evaluated. you need either eval or []'s

try %flood. [ $+ [ $nick ] ]
Posted By: Majestic Re: Flood protect? - 11/07/03 08:26 AM
what is the error?
I make something still wrong!


on 1:TEXT:*:#: {
if (!%flood. [ $+ [ $nick ] ] {
if ($1 == !test) { /msg test message | set -u30 %flood. [ $+ [ $nick ] ]
}
}
}
Posted By: KingTomato Re: Flood protect? - 11/07/03 08:34 AM
Code:
on 1:TEXT:*:#: {
if (!%flood. [ $+ [ $nick ] ][color:red])[/color] { 
if ($1 == !test) { /msg test message | set -u30 %flood. [ $+ [ $nick ] ] }
}
} 
Posted By: Majestic Re: Flood protect? - 11/07/03 08:46 AM
thanx, but the flood stop is not ok!
the script say it ever further without the flood protect.
Posted By: KingTomato Re: Flood protect? - 11/07/03 09:09 AM
Code:
on 1:TEXT:*:#: {
  if (!%flood. [ $+ [ $nick ] ]) { 
    if ($1 == !test) /msg test message
    else if ($1 == !test2) /msg test message again
    /inc -u30 %flood. [ $+ [ $nick ] ]
  }
} 
Posted By: Majestic Re: Flood protect? - 11/07/03 09:26 AM
thanx
© mIRC Discussion Forums