mIRC Home    About    Download    Register    News    Help

Print Thread
#154019 26/07/06 02:01 AM
Joined: Jul 2006
Posts: 5
S
spEx Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Jul 2006
Posts: 5
how do u make a script where ppl can spam 1 line per 45 seconds

thank you for you're help.

#154020 26/07/06 02:10 AM
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
Code:
on 1:text:*:#channel:{
  if $timer($nick).secs {
    ban -u45 #channel $nick 2
    notice $nick You have been silence banned for talking too much
    notice $nick If you leave the channel you will not be able to return. (45 Second ban)
  }
  else {
    timer $+ $nick 1 45 noop
  }
}


I think that will work, not tested though.

If someone says something in channel it will set a timer for 45 seconds, then if they type again it will check if a timer is set for that person and if so silences them. the ban and timer unset after 45 seconds.

This could be expanded on ad infinitum, kicks for repeat offenders etc...

btk


billythekid
#154021 26/07/06 12:45 PM
Joined: Apr 2004
Posts: 759
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 759
You better silence your timer commands as they can get quite annoying to see in status window.
Code:
on 1:text:*:#channel:{
  if ($hget(floodpro,$($+($nick,.,$chan,.,$cid),2))) {
    ban -u45 #channel $nick 2
    notice $nick You have been silence banned for talking too much
    notice $nick If you leave the channel you will not be able to return. (45 Second ban)
  }
  else hadd -mu45 floodpro $+($nick,.,$chan,.,$cid) 1

}

Last edited by Mpdreamz; 26/07/06 12:46 PM.

Link Copied to Clipboard