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 › CrossFire Hacks & Cheats › CrossFire Hack Coding / Programming / Source Code › Some Functions For ESP Draw

TalkingSome Functions For ESP Draw

Posts 1–9 of 9 · Page 1 of 1
DarkPladin
DarkPladin
Some Functions For ESP Draw
- Draw Rect
Code:
void DrawBordere( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
Code:
{
    FillRGB( x, (y + h - px), w, px,    BorderColor, pDevice );
    FillRGB( x, y, px, h,                BorderColor, pDevice );
    FillRGB( x, y, w, px,                BorderColor, pDevice );
    FillRGB( (x + w - px), y, px, h,    BorderColor, pDevice );
}

- Draw BorderE
Code:
void DrawBordere( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
Code:
{
    FillRGB( x, (y + h - px), w, px,    BorderColor, pDevice );
    FillRGB( x, y, px, h,                BorderColor, pDevice );
    FillRGB( x, y, w, px,                BorderColor, pDevice );
    FillRGB( (x + w - px), y, px, h,    BorderColor, pDevice );
}

- Draw Esp Box
Code:
void DrawEspBox( D3DXVECTOR3 Head, D3DXVECTOR3 Foot, DWORD dwColor, LPDIRECT3DDEVICE9 pDevice )
{
    D3DXVECTOR3 Box =  Head - Foot;


     if( Box.y  < 0 )
         Box.y *= -1;


    int BoxWidth    = (int)Box.y / 2;
    int DrawX        = (int)Head.x - ( BoxWidth / 2 );
    int DrawY        = (int)Head.y;


    DrawBordere( DrawX, DrawY, BoxWidth, Box.y, 1, dwColor, pDevice );
}
- Draw Health Bar
Code:
VOID DrawHealthBars( D3DXVECTOR3 Head, D3DXVECTOR3 Foot, SHORT health, LPDIRECT3DDEVICE9 pDevice )
{
    DWORD dwColor;
 
    D3DXVECTOR3 Box =  Head - Foot;
    if( Box.y < 0 )
        Box.y *= -1;
 
    int BoxWidth = (int)Box.y / 2;
    int DrawX = (int)Head.x - ( BoxWidth / 2 );
    int DrawY = (int)Head.y;
    int hlt;


    DWORD dwDrawWidth = health * (Foot.y - Head.y) / 100;


    if( health > 100 )
        health = 100;
 
    if( health > 75 )
            dwColor = 0xFF00FF00;
    else if( health > 40 )
        dwColor = 0xFFFF9B00;
    else
        dwColor = 0xFFFF0000;


    FillRGB(DrawX - 6, DrawY - 1, 5, (int)Box.y + 2, cBlack, pDevice);
    FillRGB(DrawX - 5, DrawY, 3, dwDrawWidth, dwColor, pDevice);
}
- Draw Mouse Cursor
Code:
void DrawMouse(DWORD color,LPDIRECT3DDEVICE9 pDevice)
{
    POINT myCursor; 
    GetCursorPos(&myCursor);
    DrawRect(myCursor.x,myCursor.y,11,1,color,pDevice);
    DrawRect(myCursor.x+1,myCursor.y+1,9,1,color,pDevice);
    DrawRect(myCursor.x+2,myCursor.y+2,7,1,color,pDevice);
    DrawRect(myCursor.x+3,myCursor.y+3,7,1,color,pDevice);
    DrawRect(myCursor.x+4,myCursor.y+4,8,1,color,pDevice);
    DrawRect(myCursor.x+5,myCursor.y+5,3,1,color,pDevice);
    DrawRect(myCursor.x+6,myCursor.y+6,2,1,color,pDevice);
    DrawRect(myCursor.x+7,myCursor.y+6,1,1,color,pDevice);
    DrawRect(myCursor.x+5,myCursor.y+10,4,1,color,pDevice);
    DrawRect(myCursor.x+6,myCursor.y+12,2,1,color,pDevice);
}
#Have Fun ....
#1 · edited 13y ago · 13y ago
mamo007
mamo007
Thanks For Sharing ya Kirlos O.o
#2 · 13y ago
XA
XarutoUsoCrack
Nice fail topic, original:

Here

Next time, please post credits.
#3 · 13y ago
LU
lucasheer715
need a EndScene hook
#4 · 13y ago
DarkPladin
DarkPladin
Quote Originally Posted by XarutoUsoCrack View Post
Nice fail topic, original:

Here

Next time, please post credits.
u know not a fail topic , read the code before noob replies
fail reply
#5 · 13y ago
ImMalkah
ImMalkah
Good work .
#6 · 13y ago
XA
XarutoUsoCrack
Quote Originally Posted by DarkPladin View Post
u know not a fail topic , read the code before noob replies
fail reply
You just started C&P these codes from sites around, like, Healthbars & EspBox are leeched from Gellin, mouse are leeched from NubzGetSkillz, and rest are on Internet.
#7 · 13y ago
IT
itsmebadman
Thanks for sharing!
#8 · 13y ago
DarkPladin
DarkPladin
Quote Originally Posted by XarutoUsoCrack View Post
You just started C&P these codes from sites around, like, Healthbars & EspBox are leeched from Gellin, mouse are leeched from NubzGetSkillz, and rest are on Internet.
health bars , esp box are different from shared one , not use x,y .., use head and foot vecotrs !!!!!
mouse is shared function which is used by all !!!!
#9 · 13y ago
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

  • Some code for ESPBy CrazyFrost in CrossFire Hack Coding / Programming / Source Code
    37Last post 13y ago
  • [Tut] Some Functions for D3DBy Offbeat Ninja in Combat Arms Hack Coding / Programming / Source Code
    16Last post 16y ago
  • I can make some accounts for KoWarRock.By ccuuyyjj in WarRock - International Hacks
    3Last post 19y ago
  • hey i need some hacks for this game can any1 helpBy CrUsHa in Hack Requests
    10Last post 20y ago
  • LVL 16 wr account + Working Bypass + Some hacks for a retail codeBy eusker03 in Trade Accounts/Keys/Items
    2Last post 19y ago

Tags for this Thread

None