Simple Crosshair

Posts 1–15 of 39 · Page 1 of 3
Simple Crosshair
[PHP] if( blahdeedeedumm ){
D3DCOLOR xcolor = D3DCOLOR_ARGB*/Thats where you change your colors kiddies*/( 255, 125, 000, 255 ); //end//

int size = 20, strong = 2;
int iCenterX = GetSystemMetrics( 0 ) / 2;
int iCenterY = GetSystemMetrics( 1 ) / 2;
if( iCenterX < 20 && iCenterY < 20 )
{
iCenterX = ( GetSystemMetrics( 0 ) / 2 );
iCenterY = ( GetSystemMetrics( 1 ) / 2 );
}
D3DRECT rec2 = { iCenterX- size, iCenterY, iCenterX+ size, iCenterY+ strong};
D3DRECT rec3 = { iCenterX, iCenterY- size, iCenterX+ strong,iCenterY+ size};
pDevice->Clear(1, &rec2, D3DCLEAR_TARGET, xcolor, 0, 0);
pDevice->Clear(1, &rec3, D3DCLEAR_TARGET, xcolor, 0, 0);
}[/PHP]

Easy as hell I don't know if this has been going around.. Idk. Have fun.. I have plenty of ways to do it. But i think this is the easiest.
Get Viewport is better.
I said. Easy
still easy.

int ICenterX = oViewport.Width / 2
Quote Originally Posted by whatup777 View Post
still easy.

int ICenterX = oViewport.Width / 2
same thing...
Quote Originally Posted by markoj View Post
same thing...
Wrong. GetSystemMetrics get the current monitor's resolution. GetViewport gets currect windows resolution. So in windowed mode this wouldnt work./yea
w/e you win...
>.>
.
Who uses window mode /yea
Quote Originally Posted by Fabolous View Post
Who uses window mode /yea
I dont even know how to get it working./
LMFAO.

[php]pushtoconsole->("windowed 1");[/php]

Off hand. i think thats it..
Quote Originally Posted by Fabolous View Post
LMFAO.

[php]pushtoconsole->("windowed 1");[/php]

Off hand. i think thats it..
I did that but then nothing happened.
Quote Originally Posted by whatup777 View Post
I did that but then nothing happened.
You have to alt tab out of the game after its enabled, and youll see that its a window
this is cool. now every hack with have a xhair
LOL. ahahahahahahah /me win
Posts 1–15 of 39 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us