mIRC Home    About    Download    Register    News    Help

Print Thread
#75831 19/03/04 10:23 AM
Joined: Mar 2004
Posts: 1
T
tMr Offline OP
Mostly harmless
OP Offline
Mostly harmless
T
Joined: Mar 2004
Posts: 1
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,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
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


New username: hixxy
#75833 19/03/04 12:25 PM
Joined: Dec 2002
Posts: 124
B
Vogon poet
Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
yep... //echo -a $nick(#,0)


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


Link Copied to Clipboard