Results 1 to 7 of 7

Thread: Accept cracked players

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Since a while libcod just returns accept when sv_cracked is 1. (i am hooking the call where it reads the state)

    PHP Code:
    set sv_cracked "1" 
    PHP Code:
    char hook_AuthorizeStateint arg )
    {
        
    char Cmd_Argv(arg);

        if ((
    CvarVariableValue == NULL || CvarVariableValue("sv_cracked") == 1) && strcmp (s"deny") == 0)
            return 
    "accept";

        return 
    s;
    }

    #if COD_VERSION == COD2_1_0 || COD_VERSION == COD2_1_2 || COD_VERSION == COD2_1_3
        
    cracking_hook_call(hook_AuthorizeState_call, (int)hook_AuthorizeState);
    #endif 
    This is the safest and best way.

  2. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    kung foo man (29th March 2014),RobsoN (29th March 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •