[SOURCE] Simple Teleport hack

Posts 1–15 of 43 · Page 1 of 3
[SOURCE] Simple Teleport hack
Globals:
Code:
#define playerpointer 0x66F34
#define yoffset 0xCC
DWORD player, position;
float x,y,z;
Getting use of the player pointer:
Code:
player=NULL;
player= (DWORD)GetModuleHandleA(\"ClientFX.fxd\");
player+= playerpointer;
memcpy(&position,(void *)(player),4);
position+= yoffset;
Teleport:
Code:
if(teleport == 1){
	if(GetAsyncKeyState(VK_F12)<0){ //Saves current xyz
		y = *(float*)position;
		x = *(float*)(position+0x4);
		z = *(float*)(position-0x4);
	}
}
if(teleport == 2){ //Teleports to saved xyz
        *(float*)position= y;
		*(float*)(position+0x4)= x;
		*(float*)(position-0x4)= z;
}
ur such an ca whore

owyeah i posted my GOW mod on CAEU forum some are actually considering it that its kewl and stuff but dont do it because they might get banned hey my acc aint banned for 1 day ill try again today to see if im banned ^^
Quote Originally Posted by Kuro Tenshi View Post
ur such an ca whore

owyeah i posted my GOW mod on CAEU forum some are actually considering it that its kewl and stuff but dont do it because they might get banned hey my acc aint banned for 1 day ill try again today to see if im banned ^^
haha^^
go for it :P
Quote Originally Posted by Solify View Post
haha^^
go for it :P
Rofl its still on xD failling of mods or finally excepted?

gona go on CA real quick ;3

/woot still not banned...
pfff Nice Ty man
Is it posible to make a walkable ghost mode with teleport?
Some fails.

You need to add DWORD x, y, z, posy; to.
else its not declared
Quote Originally Posted by Sydney View Post
Some fails.

You need to add DWORD x, y, z, posy; to.
else its not declared
not really ... the source is correct and yep you need to add float x,y,z; but that should be able to do >.>

Quote Originally Posted by wassup40 View Post
Is it posible to make a walkable ghost mode with teleport?
thats my ghostmode ... im working on it^^
posy undefined so...
Quote Originally Posted by wassup40 View Post
posy undefined so...
satisfied?
Not untill i have tested
Good job my bish .
player= (DWORD)GetModuleHandleA(\"ClientFX.fxd\"); is wrong it means

player= (DWORD)GetModuleHandleA("ClientFX.fxd");

But you can use one of them
Not working for me.. not working for amazing...
Here the source for an extern dll ... (works! tested by me!)
Code:
#include <windows.h>



bool IsGameReadyForHook()
{
    if( GetModuleHandleA( "ClientFX.fxd" ) != NULL 
     && GetModuleHandleA( "CShell.dll"   ) != NULL )
        return true;

    return false;
}


void OPK(){
    while (!IsGameReadyForHook()){
        Sleep(20);
    }
#define playerpointer 0x66F34
#define yoffset 0xCC
DWORD player, position;
float x,y,z;
while(true){            
player=NULL;
player= (DWORD)GetModuleHandleA("ClientFX.fxd");
player+= playerpointer;
memcpy(&position,(void *)(player),4);
position+= yoffset;

             
if(GetAsyncKeyState(VK_F11)<0){ //saves
y = *(float*)position;
x = *(float*)(position+0x4);
z = *(float*)(position-0x4);
}

if(GetAsyncKeyState(VK_F12)<0){ //Teleports
*(float*)position= y;
*(float*)(position+0x4)= x;
*(float*)(position-0x4)= z;
}

}
}

BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved){
    switch (ul_reason_for_call)
    {
    case DLL_PROCESS_ATTACH:
        CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&OPK, NULL, 0,NULL);
        break;
    case DLL_THREAD_ATTACH:
    case DLL_THREAD_DETACH:
    case DLL_PROCESS_DETACH:
        break;
    }
    return TRUE;
}
Posts 1–15 of 43 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us