Results 1 to 10 of 25

Thread: [COD4]How to make cracked server show in master list?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    I think this should do the trick:

    PHP Code:
    int hook_StateCompare(char statechar base)
    {
        if ((
    CvarVariableValue == NULL || CvarVariableValue("sv_cracked") == 1) && strcmp (state"deny") == 0// when sv_cracked 1 and deny state
        
    {
            if(
    strcmp(base"accept") == 0// when compare value is accept return true
                
    return 0;
            else
                return 
    1// when compare to value is deny return false
        
    }

        return 
    strcmp(statebase);
    }

    #if COD_VERSION == COD4_1_7
        
    cracking_hook_call(0x0816FF42, (int)hook_StateCompare);
        
    cracking_hook_call(0x081701D6, (int)hook_StateCompare);
    #endif 
    Basically it changes the compare function to returning false (1) when it compares deny to deny. And it returns true (0) when it compares deny to accept.
    Last edited by Mitch; 10th May 2014 at 23:47.

Posting Permissions

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