mIRC Home    About    Download    Register    News    Help

Print Thread
countdown script #62411 30/11/03 06:09 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
I also need a easy countdown script.. like...

If i use this command on my bot:

!help

and then i cant use the command again within 15 seconds (easy flood protection) i use timers.... but i also need like..
an notice: you must wait *seconds* before you can use that command.. this is an example...

Re: countdown script #62412 30/11/03 07:59 PM
Joined: Jan 2003
Posts: 148
K
Knappen Offline
Vogon poet
Offline
Vogon poet
K
Joined: Jan 2003
Posts: 148
Halla!
Bruk dette:

Code:
  
on *:text:*:*:{
if ($1 == !help) {
if ($nick == %nick [ $+ [ $nick ] ]) { notice $nick Du kan ikke bruke denne kommandoen fr det har gtt 15 sekunder! | halt }
else {
set -u15 %nick [ $+ [ $nick ] ]
}
}
}

Re: countdown script #62413 01/12/03 03:52 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
Thats not really what i need...

i need it to...

its 15 seconds left
its 14 seconds left..

like every time you msg a new number is displayed.. lol @ my english

Re: countdown script #62414 01/12/03 05:00 PM
Joined: Oct 2003
Posts: 30
pleur Offline
Ameglian cow
Offline
Ameglian cow
Joined: Oct 2003
Posts: 30
use a timer, and a variabel containing the last number, then check wheter it's te last, and stop spamming in the chan ^_^


------
Cheers m8!