Prevent joining of a channel unless an admin is in there?

Results 1 to 14 of 14
  1. #1

    Prevent joining of a channel unless an admin is in there?

    I have an event channel and I don't want random people coming in and making games without an administrator in it. Adding a command to this will be hard.

    May I know how to do this?


  2. #2
    Proficient Member lapochier is offline
    MemberRank
    Oct 2008 Join Date
    153Posts

    Re: Prevent joining of a channel unless an admin is in there?

    like lg gunz only grade -> admin grade etc etc can make room
    yeah i want 2 know too
    if its a user game = crash lmfao
    or only set message (name you want) than than dont open room.
    soo easy to say, soo hard too do >_>

  3. #3
    Account Upgraded | Title Enabled! frenchfatcat is offline
    MemberRank
    Dec 2008 Join Date
    229Posts

    Re: Prevent joining of a channel unless an admin is in there?

    interesting concept! i think i shall monitor this thread closely on any developments

  4. #4
    Account Upgraded | Title Enabled! Trilest is offline
    MemberRank
    Apr 2009 Join Date
    The NetherlandsLocation
    549Posts

    Re: Prevent joining of a channel unless an admin is in there?

    Quote Originally Posted by frenchfatcat View Post
    interesting concept! i think i shall monitor this thread closely on any developments
    Yeah me 2.

  5. #5
    Account Upgraded | Title Enabled! cerealnp is offline
    MemberRank
    Apr 2006 Join Date
    BrazilLocation
    441Posts

    Re: Prevent joining of a channel unless an admin is in there?

    I have done it trough hooking the original ZPostStageCreate function, there's the code.
    Code:
    void __cdecl ZPostStageCreateHook(MUID id,char* Stagename,bool passworded,char* password)
    {
    	bool bRet = true;
    	if (int(GetChannel()) == 2) // EventChannel
    	{
    		if (SouAdm == 0) //That's the variable who stores info about your grade.
    		{
    			bRet = false;
    			Crashar(0); //Crahes the game for a little fun.
    		}
    	}
    	pStageDet->Ret(bRet);
    }
    BTW, it doesn't block people from joining the channel, just block them from creating rooms, if they're not administrators.

    Chatting at this channel is also blocked by hooking ZChatInput.

    Lambda's tutorial on how to run 2 servers at the same PC will give you useful information about hooking gunz functions.

  6. #6
    Account Upgraded | Title Enabled! katsumi is offline
    MemberRank
    Oct 2008 Join Date
    Earth ??Location
    592Posts

    Re: Prevent joining of a channel unless an admin is in there?

    Quote Originally Posted by cerealnp View Post
    I have done it trough hooking the original ZPostStageCreate function, there's the code.
    Code:
    void __cdecl ZPostStageCreateHook(MUID id,char* Stagename,bool passworded,char* password)
    {
    	bool bRet = true;
    	if (int(GetChannel()) == 2) // EventChannel
    	{
    		if (SouAdm == 0) //That's the variable who stores info about your grade.
    		{
    			bRet = false;
    			Crashar(0); //Crahes the game for a little fun.
    		}
    	}
    	pStageDet->Ret(bRet);
    }
    BTW, it doesn't block people from joining the channel, just block them from creating rooms, if they're not administrators.
    Chatting at this channel is also blocked by hooking ZChatInput.

    Lambda's tutorial on how to run 2 servers at the same PC will give you useful information about hooking gunz functions.
    thanks a lot :)..

  7. #7

    Re: Prevent joining of a channel unless an admin is in there?

    Quote Originally Posted by cerealnp View Post
    I have done it trough hooking the original ZPostStageCreate function, there's the code.
    Code:
    void __cdecl ZPostStageCreateHook(MUID id,char* Stagename,bool passworded,char* password)
    {
        bool bRet = true;
        if (int(GetChannel()) == 2) // EventChannel
        {
            if (SouAdm == 0) //That's the variable who stores info about your grade.
            {
                bRet = false;
                Crashar(0); //Crahes the game for a little fun.
            }
        }
        pStageDet->Ret(bRet);
    }
    BTW, it doesn't block people from joining the channel, just block them from creating rooms, if they're not administrators.

    Chatting at this channel is also blocked by hooking ZChatInput.

    Lambda's tutorial on how to run 2 servers at the same PC will give you useful information about hooking gunz functions.
    Lance's CDetour function doesn't work for me. It gives me loads of errors.

  8. #8
    Account Upgraded | Title Enabled! ~Fallen is offline
    MemberRank
    Dec 2008 Join Date
    Behind you look BehindLocation
    407Posts

    Re: Prevent joining of a channel unless an admin is in there?

    change the channel allow thing. forgot what it is. i done this for GG too

  9. #9
    Account Upgraded | Title Enabled! cerealnp is offline
    MemberRank
    Apr 2006 Join Date
    BrazilLocation
    441Posts

    Re: Prevent joining of a channel unless an admin is in there?

    Quote Originally Posted by Linear88 View Post
    Lance's CDetour function doesn't work for me. It gives me loads of errors.
    Try compiling it with Visual Studio 2003 compiler.

  10. #10
    Proficient Member lapochier is offline
    MemberRank
    Oct 2008 Join Date
    153Posts

    Re: Prevent joining of a channel unless an admin is in there?

    anyone can compile for me vista fail whit vb
    :(

  11. #11

    Re: Prevent joining of a channel unless an admin is in there?

    Quote Originally Posted by cerealnp View Post
    Try compiling it with Visual Studio 2003 compiler.
    It's no longer on the net. Can't find it in google. :|

  12. #12
    Account Upgraded | Title Enabled! cerealnp is offline
    MemberRank
    Apr 2006 Join Date
    BrazilLocation
    441Posts

    Re: Prevent joining of a channel unless an admin is in there?

    Quote Originally Posted by Linear88 View Post
    It's no longer on the net. Can't find it in google. :|
    I won't post it here cause it's against RZ rules, but you can find it on thepiratebay.

  13. #13
    2D > 3D Wucas is offline
    MemberRank
    Dec 2008 Join Date
    In your bed :3Location
    2,523Posts

    Re: Prevent joining of a channel unless an admin is in there?

    Just Use WATCOM, its open source awesomeness

  14. #14
    Proficient Member lapochier is offline
    MemberRank
    Oct 2008 Join Date
    153Posts

    Re: Prevent joining of a channel unless an admin is in there?

    Try compiling it with Visual Studio 2003 compiler.

    Pm me the upload / :(



Advertisement