Quote Originally Posted by Mitch View Post
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.
Hey Mitch, i look for a way for a long time to run a cod4 cracked server and never found anything in internet!! Sorry for my noob question, but how do u use this php codes u just gave here??

Thanks for your help,
ps: sorry for my bad english, i'm french
Kill3ill