[RELEASE] Useful Functions
So we put that under pfont? Thats what i dont get.
What font. There r multiple places that mention font
What font. There r multiple places that mention font
Oooo i gettt ittt
thank yo! Im gonna try that right now. Anf hile im at it. Draw ox i did the same thing. I put lobals and everything under cbase. And i put the last line under menu hotkey and i d/c. I think its my base
EDIT:I still d/c with the circle... let me get this straight.
Globals go at the almost very top. After glboals go right under the globals. D3DCreateline or w/e goes right before d3dcreatefont. Then the endscewne thing goes with my xhair in the render place?
cuz i did that and i d/c..
thank yo! Im gonna try that right now. Anf hile im at it. Draw ox i did the same thing. I put lobals and everything under cbase. And i put the last line under menu hotkey and i d/c. I think its my base
EDIT:I still d/c with the circle... let me get this straight.
Globals go at the almost very top. After glboals go right under the globals. D3DCreateline or w/e goes right before d3dcreatefont. Then the endscewne thing goes with my xhair in the render place?
cuz i did that and i d/c..
D3DX stuff D/Cs now, as in ID3DXLine/Font.
For the crosshair, instead just do this :
Then all you need to do is get the viewport by doing
DEVICE->GetViewport(...);
and then draw the crosshair :
If that doesn't work, you're hooking incorrectly.
For the crosshair, instead just do this :
Code:
void DrawLine(int x, int y, int x2, int y2, int width, DWORD color, LPDIRECT3DDEVICE9 pDevice)
{
FillRGB(x, y, x2 - x, y2 - y, color, pDevice);
}
DEVICE->GetViewport(...);
and then draw the crosshair :
Code:
//I used oViewport for my viewport DrawLine((oViewport.Width / 2) - 10, (oViewport.Height / 2), (oViewport.Width / 2) + 10, (oViewport.Height / 2), 1, D3DCOLOR_XRGB(255,0,0), pDevice); DrawLine((oViewport.Width / 2), (oViewport.Height / 2) - 10, (oViewport.Width / 2), (oViewport.Height / 2) + 10, 1, D3DCOLOR_XRGB(255,0,0), pDevice);
Well I can't think of anything you're doing wrong..
Change p_line to the name of your line.
Code:
//ES or Present :
if(p_line == NULL){
D3DXCreateLine(...);
}
DrawCircle(...);
//In Reset :
p_line->OnLostDevice();
HRESULT hreturn = oReset(pDevice, pPresentationParameters);
p_line->OnResetDevice();
return hreturn;
where u put DrawCircle(...) Is that the thing thats after global or what?
And ac1d never said anything bout Reset
And ac1d never said anything bout Reset
This thread is closed for replies.
Similar Threads
Combat Arms Hacks & Cheats[Release] USE OPK FOR COMBAT ARMS NO DOWNLOAD UNPATCHABLE AND UNDETECTABLE!!!WE 114 CrossFire Hacks & CheatsIdeas for my next launcher release, look, functions & more
17 Combat Arms Hack Coding / Programming / Source Code[Release] DrawCheckBox Function 17 Visual Basic ProgrammingUseful FunctionsIA 6 C# ProgrammingClass library with some useful functions.T7 8

