Можно исходник??
C++:
SRHook::Hook<char *, unsigned short> m_connectHook{ 0x30640, 6, "samp" };
if ( SAMP::isR3() ) this->m_connectHook.changeAddr( 0x339F0 );
this->m_connectHook.install( 4 );
this->m_connectHook.onBefore += []( char *&host, unsigned short &serverPort ) {
static bool used = false;
if ( used ) return;
reinterpret_cast<void( * )( unsigned short )>( SAMP::Library() + ( SAMP::isR1() ? 0x1BC20 : 0x1EFD0 ) )( this->m_port );
strcpy( host, this->m_host.c_str() );
serverPort = this->m_port;
used = true;
};