Help with this please. - 08/04/13 02:54 PM
Code:
;Starts the counter on *:TEXT:!ppp*:#:{ msg $chan $nick is now on air! set %startctime $ctime } ;Stop the counter on *:TEXT:!ooo*:#:{ inc %OnAir. $+ $nick $duration($calc($ctime - %startctime)) msg $chan Time: $duration($calc($ctime - %startctime)) unset %startctime msg $chan $nick is now off air } ;Information on *:TEXT:!iii*:#:{ msg $chan Time: $bytes($($+(%,OnAir.,$nick),2),b) }
This script is ment to total up the amount of time a user has been on air with our radio station. so they !ppp
when they go on air, then !ooo when they get off. That time then gets added to their total time to tell chan users
how long in total they have spent on air. Then !iii is to relay their total time to the chan
Any help is very much welcome.