Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C++/C Programming › Teleport function [Help please]

Teleport function [Help please]

Posts 1–3 of 3 · Page 1 of 1
FR
FrancYescO
Teleport function [Help please]
Hi all i'm trying to make a teleport function in my hack (realy d3d...)

this is the my code, where is the error?? because when i click pageup for teleport i go to the cordinate 0 0 0, i think the readpointerfloat function don't work

this is the code of functions:

Code:
void WritePointerFloat(long addy, short offset, float value) //////this work 
{
	long maddy;
	long saddy;
	memory();
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD) addy, &maddy, sizeof(maddy), NULL);
	saddy = maddy + offset;
	WriteProcessMemory(hProcess, (LPVOID*)(DWORD) saddy, &value, sizeof(value), NULL);
}

void ReadPointerFloat(long addy, short offset, float &buffer) ////// this i think no
{
	long faddy;
	long raddy;
	memory();
	ReadProcessMemory(hProcess,(LPVOID*)(DWORD)addy, &faddy, sizeof(faddy),NULL);
	raddy = faddy + offset;
	ReadProcessMemory(hProcess,(LPVOID*)(DWORD)raddy, &buffer, sizeof(buffer),NULL);
}
this is the code of teleport:
Code:
void teleport() 
{ 
float  x, y, z;
if (GetAsyncKeyState(VK_NEXT) &1<< 0xF)
{
ReadPointerFloat(pointer_Addie, 0x174, y); 
ReadPointerFloat(pointer_Addie, 0x17C, x); 
ReadPointerFloat(pointer_Addie, 0x178, z); 
}
if (GetAsyncKeyState(VK_PRIOR) &1<< 0xF)
{
WritePointerFloat(pointer_Addie, 0x174, y); 
WritePointerFloat(pointer_Addie, 0x17C, x); 
WritePointerFloat(pointer_Addie, 0x178, z); 
}
}
where is the error ??

thx for helping!
#1 · 18y ago
ZeaS
ZeaS
why using a Reference ?

Code:
long curx, cury, curz, x2, y2, z2;
void GetCurTele(long playerpointer)
{
	long bla, bla2, bla3;
	memory();
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD)playerpointer, &bla, sizeof(bla), NULL);
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD)playerpointer, &bla2, sizeof(bla2), NULL);
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD)playerpointer, &bla3, sizeof(bla3), NULL);
	x2 = bla + OFS_X;
	y2 = bla2 + OFS_Y;
	z2 = bla3 + OFS_Z;
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD)x2, &curx, sizeof(curx), NULL);
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD)y2, &cury, sizeof(cury), NULL);
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD)z2, &curz, sizeof(curz), NULL);
	
}
void TelePort()
{
        memory();
	WriteProcessMemory(hProcess, (LPVOID*)(DWORD)x2, &curx, sizeof(curx), NULL);
	WriteProcessMemory(hProcess, (LPVOID*)(DWORD)y2, &cury, sizeof(cury), NULL);
	WriteProcessMemory(hProcess, (LPVOID*)(DWORD)z2, &curz, sizeof(curz), NULL);
}
as example if you want to use Write/Read - ProcessMemory
#2 · 18y ago
masterboy120
masterboy120
Quote Originally Posted by ZeaS View Post
why using a Reference ?

Code:
long curx, cury, curz, x2, y2, z2;
void GetCurTele(long playerpointer)
{
	long bla, bla2, bla3;
	memory();
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD)playerpointer, &bla, sizeof(bla), NULL);
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD)playerpointer, &bla2, sizeof(bla2), NULL);
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD)playerpointer, &bla3, sizeof(bla3), NULL);
	x2 = bla + OFS_X;
	y2 = bla2 + OFS_Y;
	z2 = bla3 + OFS_Z;
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD)x2, &curx, sizeof(curx), NULL);
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD)y2, &cury, sizeof(cury), NULL);
	ReadProcessMemory(hProcess, (LPVOID*)(DWORD)z2, &curz, sizeof(curz), NULL);
	
}
void TelePort()
{
        memory();
	WriteProcessMemory(hProcess, (LPVOID*)(DWORD)x2, &curx, sizeof(curx), NULL);
	WriteProcessMemory(hProcess, (LPVOID*)(DWORD)y2, &cury, sizeof(cury), NULL);
	WriteProcessMemory(hProcess, (LPVOID*)(DWORD)z2, &curz, sizeof(curz), NULL);
}
as example if you want to use Write/Read - ProcessMemory
Nice,I needed help with this too
#3 · 18y ago
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

  • help pleaseBy alpha3po in Combat Arms Help
    6Last post 15y ago
  • Help Please ! Crossfire PH or whateverBy maek0witzki33 in CrossFire Help
    10Last post 13y ago
  • [ANSWERED]crossfire Help Please.By ownedpjer in CrossFire Help
    2Last post 15y ago
  • New. Help Please :)By xclutchx in Vindictus Help
    8Last post 15y ago
  • Black Cipher Help [please help]By zubni in Combat Arms Help
    25Last post 15y ago

Tags for this Thread

#function#teleport