MH_CreateAndEnableHook ( pSAMP -> dwSAMPAddr + 0x9525 , & HOOK_RakClientDestructor , NULL ) ;
__declspec ( naked ) void HOOK_RakClientDestructor ( void ) { if ( pSAMP -> getInfo ( ) -> pRakClientInterface != NULL ) delete pSAMP -> getInfo ( ) -> pRakClientInterface ; pSAMP -> getInfo ( ) -> pRakClientInterface = pSAMP -> getRakClientInterface ( ) ; static DWORD retDestruct = pSAMP -> dwSAMPAddr + 0x37686 ; __asm { mov eax , [ esp + 04 ] test eax , eax jmp retDestruct } }