#define SAMP_DIALOG_SHOW 0x80320 // #define SAMP_DIALOG_INFO_OFFSET 0x2129F8 // showSampDialog ( int send , int dialogID , int typedialog , char * caption , char * text , char * button1 , char * button2 ) { uint32_t samp_dll = ( uint32_t ) GetModuleHandle ( "samp.dll" ) ; g_dwSAMP_Addr = ( uint32_t ) samp_dll ; uint32_t func = g_dwSAMP_Addr + SAMP_DIALOG_SHOW ; uint32_t data = g_dwSAMP_Addr + SAMP_DIALOG_INFO_OFFSET ; __asm mov eax , dword ptr [ data ] __asm mov ecx , dword ptr [ eax ] //mov to offset __asm push send //0 - No send response, 1 - Send response __asm push button2 __asm push button1 __asm push text __asm push caption __asm push typedialog __asm push dialogID __asm call func return ; }