mIRC Home    About    Download    Register    News    Help

Print Thread
#124550 08/07/05 08:35 AM
Joined: Apr 2005
Posts: 12
A
anarres Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Apr 2005
Posts: 12
Just know how to put a timer that while is on the timer some actions cannot be done, like:

if (timerX is OFF) { /msg $nick wait a wile }
else { /msg $nick you can so it now }

#124551 08/07/05 09:02 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
if (!$timer(X)) { msg $nick wait a while } | else { msg $nick you can so it now }

NB: i followed exactly what you showed in your code which appears to tbe the opersite of what you said.
ie: your code says if the timer is not functioning then they must wait, to reverse the effect simple remove the ! from $timer() (the ! is a NOT)

nb: you should name the timer a specific name rather than relying on the automatic timer numbering
ie:
/timerFRED 1 10 echo -a Saying Fred
//if ($timer(fred)) { echo Timer Fred is running } | else { echo Timer Fred is not running }


Link Copied to Clipboard