SUSPEND_LIST... Anyone?

Post here if you need help setting up your server, etc.
Post Reply
User avatar
LOVER$BOY
Match Winner
Posts: 731
Joined: Thu Jan 24, 2008 12:46 pm

SUSPEND_LIST... Anyone?

Post by LOVER$BOY »

So, do we have it?

Well?!

I know!

I have it!

Alpha Project's servers have it. Sadly they are down so there's no proof but I wasn't planning on proving anything :P

kyle, I think you should add this addition to sty+ct as well as it's a branch that's widely used (even though I have features that far surpassed yours :P )

This command obviously is a useful tool to use to check on those who were stupid enough to play dirty and get suspended.

So I suppose you could add this command from the source I put together here:

Code: Select all

static void SuspendList_conf(std::istream &s)
{
    ePlayerNetID * receiver=0;
    tColoredString send;

    if (se_PlayerNetIDs.Len()>0){
        int max = se_PlayerNetIDs.Len();
        for(int i=0;i<max;i++){
            ePlayerNetID *p=se_PlayerNetIDs(i);
            if (p && p->IsSuspended())
            {
                send << p->GetColoredName() << tColoredString::ColorString( 1,1,.5 ) << ", ";
            }
        }
        send << "\n";
        sn_ConsoleOut( send, receiver->Owner() );
    }
}

static tConfItemFunc suspendlist_conf("SUSPEND_LIST", &SuspendList_conf);
static tAccessLevelSetter se_suspendlistConfLevel( suspendlist_conf, tAccessLevel_Moderator );
Image
Post Reply