Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef IGModDataPack* ( __cdecl* GetDataPackPointer_t )( void );
- IGModDataPack* ptr_DataPack = NULL;
- CVMTManager* g_DataPackHook = NULL;
- bool __cdecl new_BlockCSLua( void )
- {
- return false;
- }
- bool GetDataPackPtr( void )
- {
- DWORD dwDataPackCall = FindPattern( ( DWORD )GetModuleHandleA( "doit" ), "\yourself", "???loser??" );
- if( dwDataPackCall == NULL )
- return false;
- GetDataPackPointer_t GetDataPackPointer = GetCallAddress< GetDataPackPointer_t >( dwDataPackCall );
- ptr_DataPack = GetDataPackPointer();
- if( ptr_DataPack != NULL )
- return true;
- return false;
- }
- DWORD WINAPI MainThread( LPVOID lpArguments )
- {
- while( GetModuleHandleA( "client.dll" ) == NULL )
- Sleep( 100 );
- if( GetDataPackPtr() )
- {
- static CVMTManager DataPackHook( ptr_DataPack, true );
- g_DataPackHook = &DataPackHook;
- DataPackHook.HookMethod( &new_BlockCSLua, 4 );
- }
- return NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment