dimanche 26 janvier 2014

[Coding] execute Console Commands topic




njoi


Code:


DWORD dwFunc_executeConsoleCommand =    0x009705D0;
typedef void* (__cdecl* tConsoleRegistry_executeConsoleCommand)( const char * result,char* cmdString, bool force);
tConsoleRegistry_executeConsoleCommand oConsoleRegistry_executeConsoleCommand = (tConsoleRegistry_executeConsoleCommand)(dwFunc_executeConsoleCommand);


example


Code:


if(bCinema && !done)
        {        char szBuffer[4096] = { 0 };
                oConsoleRegistry_executeConsoleCommand(szBuffer, "UI.DrawEnable 0", true); 
                done=1;
        }







Aucun commentaire:

Enregistrer un commentaire