void samp_Disconnect( DWORD reason )
{
/*
.text:1009C470 mov eax, SAMPManager
.text:1009C475 test eax, eax
.text:1009C477 jz short loc_1009C490
.text:1009C479 cmp dword ptr [eax+210h], 1Eh ; gamestate != 0x1E
.text:1009C480 jnz short loc_1009C490
.text:1009C482 mov ecx, [eax]
.text:1009C484 mov eax, [ecx]
.text:1009C486 push 0
.text:1009C488 push 1F4h
.text:1009C48D call dword ptr [eax+8] ; raknet->Disconnect( 0x1F4 );
*/
void *raknet = GetSAMPManager()->raknet;
_asm
{
mov ecx, dword ptr[raknet]
mov eax, dword ptr[ecx]
push 0
push reason
call dword ptr[eax + 8]
}
}
olol