#define SAMP_CHAT_INFO_OFFSET 0x26E8C8
#define SAMP_FUNC_ADDTOCHATWND 0x67460
SAMPBase *pSAMP;
void mainThread(void *pvParams)
{
if (pSAMP)
{
while (!pSAMP->tryInit())
Sleep(100);
while (!pSAMP->isInited)
continue;
strcpy(pSAMP->getInfo()->m_szHostAddress, "217.106.106.86");
pSAMP->getInfo()->m_nPort = 7024;
}
}
BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReasonForCall, LPVOID lpReserved)
{
switch (dwReasonForCall)
{
case DLL_PROCESS_ATTACH:
{
pSAMP = new SAMPBase(GetModuleHandle("samp.dll"));
_beginthread(mainThread, NULL, NULL);
break;
}
}
return TRUE;
}