Teleport Problem

Posts 115 of 25 · Page 1 of 2
Teleport Problem
I use this source:
http://www.mpgh.net/forum/224-combat...port-hack.html

Any idea how to stop the flickering? it goes from A to B & B to A, always tele from both sides continually & it makes my player becomes flicker. I want my player to keep stay on spot B without return to A except if i turned the teleport off. I tried put the codes in beginscene & endscense, same result. Put sleep(1); also doesnt help much.

Sorry for my bad english.
Can I see the exact code? Put it in the hacks place /
Quote Originally Posted by flameswor10 View Post
Can I see the exact code? Put it in the hacks place /
Ok, here:

Code:
#include <windows.h>

bool cBase::IsGameReadyForHook(void)
{
    if( GetModuleHandle( "d3d9.dll"     ) != NULL 
     && GetModuleHandle( "ClientFX.fxd" ) != NULL
     && GetModuleHandle( "CShell.dll"   ) != NULL )
        return true;
    return false;
}

void cBase::Teleport(void)
{
	while(1)
	{
             //save location
	     if( GetAsyncKeyState(0x5A) & 1 ) {
		y = *(float*)posy;
		x = *(float*)(posy+0x4);
		z = *(float*)(posy-0x4);
	     }
	
	     //teleport
	     if( tele > 0 ) {
		*(float*)posy= y;
		*(float*)(posy+0x4)= x;
		*(float*)(posy-0x4)= z;
	     }
        }
}

DWORD WINAPI hack(LPVOID)
{
	while( !Base.IsGameReadyForHook() )
		Sleep(100);
		Directx.Hook();
		Base.Update();
	return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);

	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		CreateThread(NULL, NULL, hack, NULL, NULL, NULL);
	}
	return TRUE;
}
Quote Originally Posted by Moothew =^_^= View Post
Ok, here:

Code:
#include <windows.h>

bool cBase::IsGameReadyForHook(void)
{
    if( GetModuleHandle( "d3d9.dll"     ) != NULL 
     && GetModuleHandle( "ClientFX.fxd" ) != NULL
     && GetModuleHandle( "CShell.dll"   ) != NULL )
        return true;
    return false;
}

void cBase::Teleport(void)
{
	while(1)
	{
             //save location
	     if( GetAsyncKeyState(0x5A) & 1 ) {
		y = *(float*)posy;
		x = *(float*)(posy+0x4);
		z = *(float*)(posy-0x4);
	     }
	
	     //teleport
	     if( tele > 0 ) {
		*(float*)posy= y;
		*(float*)(posy+0x4)= x;
		*(float*)(posy-0x4)= z;
	     }
        }
}

DWORD WINAPI hack(LPVOID)
{
	while( !Base.IsGameReadyForHook() )
		Sleep(100);
		Directx.Hook();
		Base.Update();
	return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);

	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		CreateThread(NULL, NULL, hack, NULL, NULL, NULL);
	}
	return TRUE;
}
Your instantly changing the player pos that cant be done.
Quote Originally Posted by Mr.Magicman View Post


Your instantly changing the player pos that cant be done.
can guide me how to solve it?
Quote Originally Posted by Moothew =^_^= View Post
can guide me how to solve it?
You want to move the camera or the player body?
hmm there is better codes for that.
Did you forget to add a function to say when the key is pressed. it teleports /
just saying
Quote Originally Posted by flameswor10 View Post
Did you forget to add a function to say when the key is pressed. it teleports /
just saying
Here, but is that the problem?? sry i forgot to post this in my previous post.

Code:
void cBase::Teleport(void)
{
	while(1)
	{
             posptr = NULL;
	     posptr = (DWORD)GetModuleHandleA("ClientFX.fxd");
	     posptr += charposoffset;

             memcpy(&posy,(void *)(posptr),4);
	     posy += posyoffset;
              
             //save location
	     if( GetAsyncKeyState(0x5A) & 1 ) {
		y = *(float*)posy;
		x = *(float*)(posy+0x4);
		z = *(float*)(posy-0x4);
	     }
	
	     //teleport
	     if( tele > 0 ) {
		*(float*)posy= y;
		*(float*)(posy+0x4)= x;
		*(float*)(posy-0x4)= z;
	     }
      }
}
Isn't there a different method for teleport? /
Code:
	if( GetAsyncKeyState(0x5A) & 1 ) {
		*(float*)posy= y;
		*(float*)(posy+0x4)= x;
		*(float*)(posy-0x4)= z;
}
Quote Originally Posted by flameswor10 View Post
Isn't there a different method for teleport? /
[code]
if( GetAsyncKeyState(0x5A) & 1 ) {
*(float*)posy= y;
*(float*)(posy+0x4)= x;
*(float*)(posy-0x4)= z;
}
[/code[
what??

All im asking why my player keep moving from spot A to B & B to A again? i want it to stay at B when the tele == 1. the flickering is killing me.
yea you can't ACTUALLY teleport your character in Combat arms. all you can do is move the camera position (which is still useful since you can invisibly kill people).
Quote Originally Posted by swatfx View Post
yea you can't ACTUALLY teleport your character in Combat arms. all you can do is move the camera position (which is still useful since you can invisibly kill people).
There is a way to ACTUALY teleport/move the body..
Quote Originally Posted by Stephen View Post


There is a way to ACTUALY teleport/move the body..
but its not public.

and when I say public I mean available to the public including VIP.

a actual Teleport hack hasn't been released since 2008.
There is a way to stop the flickering but it's only client sided. And I doubt you could find
Posts 115 of 25 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?