[HELP] Simple Crosshair
This is my first use of DXD9. I am still a noob at DXD9.
Extracts of Crosshair code
[php]void CrossHair(LPDIRECT3DDEVICE9 pDevice, int size, int strong, D3DCOLOR lykeColor){
int lykeCenterX = GetSystemMetrics( 0 ) / 2;
int lykeCenterY = GetSystemMetrics( 1 ) / 2;
D3DRECT rec1 = { lykeCenterX- size, lykeCenterY, lykeCenterX+ size, lykeCenterY+ strong};
D3DRECT rec2 = { lykeCenterX, lykeCenterY- size, lykeCenterX+ strong,lykeCenterY+ size};
pDevice->Clear(1, &rec1, D3DCLEAR_TARGET, lykeColor, 1000, 0);
pDevice->Clear(1, &rec2, D3DCLEAR_TARGET, lykeColor, 100, 0);
}[/php]
[php] CrossHair(pDevice, 20, 2, D3DCOLOR_ARGB( 255, 255, 0, 0 ));[/php]
When i turn the Crosshair hack on VIA hotkey, Combat arms disconnects. Can somone help me code a crosshair hack and tell me why this isnt working.
Im sure there is somthing missing!!!
This was origionally made by TOPBLAST. http://www.mpgh.net/forum/207-combat...ir-source.html
I though i will learn by looking at other source codes.
Thanks in advance.
Extracts of Crosshair code
[php]void CrossHair(LPDIRECT3DDEVICE9 pDevice, int size, int strong, D3DCOLOR lykeColor){
int lykeCenterX = GetSystemMetrics( 0 ) / 2;
int lykeCenterY = GetSystemMetrics( 1 ) / 2;
D3DRECT rec1 = { lykeCenterX- size, lykeCenterY, lykeCenterX+ size, lykeCenterY+ strong};
D3DRECT rec2 = { lykeCenterX, lykeCenterY- size, lykeCenterX+ strong,lykeCenterY+ size};
pDevice->Clear(1, &rec1, D3DCLEAR_TARGET, lykeColor, 1000, 0);
pDevice->Clear(1, &rec2, D3DCLEAR_TARGET, lykeColor, 100, 0);
}[/php]
[php] CrossHair(pDevice, 20, 2, D3DCOLOR_ARGB( 255, 255, 0, 0 ));[/php]
When i turn the Crosshair hack on VIA hotkey, Combat arms disconnects. Can somone help me code a crosshair hack and tell me why this isnt working.
Im sure there is somthing missing!!!
This was origionally made by TOPBLAST. http://www.mpgh.net/forum/207-combat...ir-source.html
I though i will learn by looking at other source codes.
Thanks in advance.
