TalkingSome Functions For ESP Draw

Posts 1–9 of 9 · Page 1 of 1
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 ....
Thanks For Sharing ya Kirlos O.o
Nice fail topic, original:

Here

Next time, please post credits.
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
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.
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 !!!!
need a EndScene hook
Good work .
Thanks for sharing!
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us