mIRC Home    About    Download    Register    News    Help

Print Thread
#75831 19/03/04 10:23 AM
T
tMr
tMr
T
I'd like to have a counter that counts howmany users are online on a channel...

so when I join, the script calculates howmany are online and when someone parts/joins the script calculates howmany users are online after the part/join

IS this possible? if so... plz reply!

#75832 19/03/04 10:29 AM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
Code:
on me:*:join:#:{ hadd -m counter # $nick(#,0) }
on me:*:part:#:{
if $hget(counter,#) { .hdel counter # }
}
on *!:join:#:{ hinc -m counter # }
on *!:part:#:{ hdec -m counter # }

$hget(counter,channel) to access it smile

#75833 19/03/04 12:25 PM
B
bloupx
bloupx
B
yep... //echo -a $nick(#,0)


that tells you the number of users in the channel at any time.


Link Copied to Clipboard