Disable Admin Server Halt Command [Gunz 1.5]

Results 1 to 6 of 6
  1. #1
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    Disable Admin Server Halt Command [Gunz 1.5]

    ZChat_Cmds.cpp:

    Search for:
    Code:
    _CC_AC("admin_halt",		&ChatCmd_AdminServerHalt,		CCF_ADMIN, ARGVNoMin, ARGVNoMax, true,"/admin_halt", "");
    Replace with this:
    Code:
    // _CC_AC("admin_halt",		&ChatCmd_AdminServerHalt,		CCF_ADMIN, ARGVNoMin, ARGVNoMax, true,"/admin_halt", "");
    -----------------------
    Search for:
    Code:
    _CC_ALIAS("Á¾·á", "admin_halt");
    Replace with this:
    Code:
    // _CC_ALIAS("Á¾·á", "admin_halt");
    -----------------------
    Search for:
    Code:
    void ChatCmd_AdminServerHalt(const char* line, const int argc, char **const argv)
    {
    	ZPostAdminHalt(ZGetGameClient()->GetPlayerUID());
    }
    Replace with:
    Code:
    /*void ChatCmd_AdminServerHalt(const char* line, const int argc, char **const argv)
    {
    	ZPostAdminHalt(ZGetGameClient()->GetPlayerUID());
    }*/
    ZPost.h:


    Search for:
    Code:
    inline void ZPostAdminHalt(const MUID& uidChar)
    {
    	ZPOSTCMD1(MC_ADMIN_SERVER_HALT, MCommandParameterUID(uidChar) );
    }
    And replace with:
    Code:
    /*inline void ZPostAdminHalt(const MUID& uidChar)
    {
    	ZPOSTCMD1(MC_ADMIN_SERVER_HALT, MCommandParameterUID(uidChar) );
    }*/
    That's all save and build, hope I've helped :)


  2. #2
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Disable Admin Server Halt Command [Gunz 1.5]

    instead why dont u do this ?

    _CC_AC("", &ChatCmd_AdminServerHalt, CCF_ADMIN, ARGVNoMin, ARGVNoMax, true,"", "");

  3. #3
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    Re: Disable Admin Server Halt Command [Gunz 1.5]

    instead why dont u do this ?
    Yeah, I know it's the same xD ...
    Everything works ;)

  4. #4
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Disable Admin Server Halt Command [Gunz 1.5]

    Quote Originally Posted by Tannous View Post
    Yeah, I know it's the same xD ...
    Everything works ;)

    xD nevermind..its good for studying halt functions. nice !

  5. #5
    Daemonsring Developer Gunblade is offline
    MemberRank
    Jul 2007 Join Date
    On the moonLocation
    728Posts

    Re: Disable Admin Server Halt Command [Gunz 1.5]

    Quote Originally Posted by Tankado View Post
    this is f..ck.g easy to do

    i think everybody know this
    so a thread for this is useless
    Not everyone knows that this function even exist, so its nice that he released it.
    For the people who don't know what this does: It removes the abuseable command /admin_halt which will shutdown your server.

  6. #6
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    Re: Disable Admin Server Halt Command [Gunz 1.5]

    I've posted this for the people who don't know. Instead, I'm still noob coder guys easy on me xD :)
    and thanks for the note...



Advertisement