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 › MultiPlayer Game Hacks & Cheats › Combat Arms Hacks & Cheats › Combat Arms Hack Coding / Programming / Source Code › Combat Arms Coding Help & Discussion › [Help?] Get Player Position

[Help?] Get Player Position

Posts 1–15 of 23 · Page 1 of 2
DR
DreadKyller
[Help?] Get Player Position
I am working on my first hack useing my own base, but that is not what I'm actually here to ask, I want to add a teleport feature and i was wondering if there is a way to get the player position like something like:

Code:
PushToConsole("PlayerPositionX 0");
PushToConsole("PlayerPositionY 0");
PushToConsole("PlayerPositionZ 0");
Is there even a ptc command for this, or is there a different way?

If so how would I "Get" the value and save it to an intiger or float?
#1 · 15y ago
IN
inliner
ptc haha
u need to do its with player pointer look into solifys thread in eu section theres a sample u just need to change the pp

anyway pm me and ill give you a example how to save the values into a text file
#2 · 15y ago
DR
DreadKyller
Ok, I'll try that, thank you.
#3 · 15y ago
IN
inliner
saving the position in a textfile is easy maybe you can do it on your own with solifys example
#4 · 15y ago
DR
DreadKyller
I did not mean in a texr file nessesarilly, just for the current game.
#5 · 15y ago
CO
CodeDemon
There is no real teleport, the engine detects you moving and puts you back at the original position.

The closest you can get to real teleport is probably, my teleport hack(http://www.mpgh.net/forum/207-combat...something.html) and/or real true ghostmode.

These actually teleport you, but you do get teleported back. It teleports you so often that you dont even notice yourself going back, but you can tell by looking at the minimap.
#6 · 15y ago
ST
Stephen
I know I saw something on how to get the position of a player then display it...
#7 · 15y ago
DR
DreadKyller
I think what I have now wil work just fine, what I mean by teleport hack is save your position and then teleport to it, cause what you are talking about sounds like telekill, that not what I looking for. Correct me if that's not what you're saying.
#8 · 15y ago
CO
Code197
just use codedemons teleport
#9 · 15y ago
DR
DreadKyller
I tested my teleport method and it works, so I do not need much help on this, But i do have one more question.

I am trying to add a help menu to the hack that you can hide or show, but i can't find a decent way to print text on the screen. Can someone help me?
#10 · 15y ago
IN
inliner
use print text function

Code:
void PrintText(LPD3DXFONT Font, long x, long y, D3DCOLOR fontColor, char *text, ...)//Draw Text Function
{ 
    RECT rct;   
    rct.left     = x - 1;   
    rct.right    = x + 1;   
    rct.top      = y - 1 ;   
    rct.bottom   = y + 1; 

    if(!text) { return; }
    va_list va_alist;
    char logbuf[256] = {0};
    va_start (va_alist, text);
    _vsnprintf (logbuf+strlen(logbuf), sizeof(logbuf) - strlen(logbuf), text, va_alist);
    va_end (va_alist);
    RECT FontRect = { x, y, x, y };
    Directx.pFont->DrawText(NULL, logbuf, -1, &rct, DT_NOCLIP, fontColor); 
}
#11 · 15y ago
ST
Stephen
[php]
void PrintText(LPD3DXFONT Font, long x, long y, D3DCOLOR fontColor, char *text, ...)//Draw Text Function
{
RECT rct;
rct.left = x - 1;
rct.right = x + 1;
rct.top = y - 1 ;
rct.bottom = y + 1;

if(!text) { return; }
va_list va_alist;
char logbuf[256] = {0};
va_start (va_alist, text);
_vsnprintf (logbuf+strlen(logbuf), sizeof(logbuf) - strlen(logbuf), text, va_alist);
va_end (va_alist);
RECT FontRect = { x, y, x, y };
pFont->DrawText(NULL, logbuf, -1, &rct, DT_NOCLIP, fontColor);
}
[/php]
#12 · 15y ago
Mr.Magicman
Mr.Magicman
For this you would need Popfromconsole or popconsole made by mmbob
#13 · 15y ago
IN
inliner
Quote Originally Posted by dishank95 View Post
dude this was posted 2 times, btw don't forget bout the drawbox
he didnt ask about drawbox
#14 · 15y ago
DR
DreadKyller
lol, yeah I not need a drawbox yet... I not working on a menu. I only want to make it so tapping Numbar pad 0 will toggle some help text, thank you, what do I put in for the D3DColor and font?
#15 · 15y ago
Posts 1–15 of 23 · Page 1 of 2

Post a Reply

Similar Threads

  • Need help, Get this when i start crossfire with injector.By -zZz- in CrossFire Help
    4Last post 15y ago
  • Need help getting hacks to workBy VpChris in Vindictus Help
    5Last post 15y ago
  • Need help getting to prestige 1By NeedPrestigedinMW2 in Call of Duty Modern Warfare 2 Help
    4Last post 14y ago
  • [HELP] Getting TimestampBy Koekenbakker in Visual Basic Programming
    8Last post 18y ago
  • i need help getting a korean nameBy scatman65 in WarRock Korea Hacks
    3Last post 19y ago

Tags for this Thread

None