viewing paste Unknown #19431 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14
        .announceCurrentOnline = 1; // Announce current online every hour?
                                
        bindatcmd "online", strnpcinfo(0)+"::OnShowOnline";
        initnpctimer;
        end;
    
    OnTimer1000:
        delwaitingroom;
        waitingroom "Players online: "+getusers(1)+" "+((.showPeakOnline&2)?"/ "+$PeakOnline+"":"")+"",0;
        if(.announceCurrentOnline && gettime(2) == 00 && gettime(1) == 01)
            announce "[System]: There"+((getusers(1) > 2)?"'re":"'s")+" "+getusers(1)+" player"+((getusers(1)>2)?"s":"")+" online.",bc_all;
        stopnpctimer;
        initnpctimer;
        end;
Viewed 691 times, submitted by Guest.