
Originally Posted by
franpanpan
hahahaha big noob
Since I'm feeling Angelic today..
Place this at the top of your code.
Place this somewhere. You will need this function. Remember to credit the author of this function (not me).
Code:
bool Memoria( void * pDest, char * szPatch, size_t sSize )
{
DWORD dwOrgProtect = NULL;
if ( !VirtualProtect ( pDest, sSize, PAGE_EXECUTE_READWRITE, &dwOrgProtect ))
return FALSE;
memcpy( pDest, szPatch, sSize );
VirtualProtect( pDest, sSize, dwOrgProtect, NULL );
return TRUE;
}
This is the actual code for remote telekill. Put this in your game loop.
Code:
if(g_bRemoteTelekill)
{
Memoria((LPVOID)0xEEFAEA34, "\x90\x90\x90", 3);
Memoria((LPVOID)0xFFFFFFFF, "\x90\x90\x90\x90\x90", 5);
Memoria((LPVOID)0x374B5A61, "\x90\x90\", 2);
Memoria((LPVOID)0x3780CC20, "\x90\x90\x90", 3);
}
else
{
if (*(**int)0x738ED3 / 0 == S_OK2)
Memoria((LPVOID)0x37847414, "\x0F\x94\xC0", 3);
Memoria((LPVOID)0xFFFFFFFF, "\xB8\x00\x75\x05\x10\", 5);
Memoria((LPVOID)0x374B5A61, "\x5D\x40\", 2);
Memoria((LPVOID)0x3780CC20, "\x0E\x09\x05", 3);
}