[C][S]VIP E999Cheaters
Jumlah posting : 10 Join date : 28.10.13
| | Source Code Crosshair No Junk | |
This Time To Share 1. - Code:
-
Mudah-Mudahan Gk Repost 2.Alat : MS Visual Express 2010 Nih Codenya : - Code:
-
#include <windows.h> #include <iostream> #include <math.h> using namespace std;
bool crosshairon=false; HDC ragedc = NULL; int crosshairsize=0; int cx=0; int cy=0;
void CrossThread(void) { while(1) { if(GetAsyncKeyState(VK_NUMPAD0)&1)//Ganti "NUMPAD0" dengan Hotkey yang kamu Mau { crosshairon=!crosshairon; ragedc = GetDC(HWND_DESKTOP); cx=GetSystemMetrics(SM_CXSCREEN)/2-((crosshairsize-1)/2); cy=GetSystemMetrics(SM_CYSCREEN)/2-((crosshairsize-1)/2); } Sleep(1); } }
int main() { cout<<"Crosshair size in pixels:\n"; cin>>crosshairsize; if(crosshairsize%2==0) { crosshairsize+=1; } system("cls"); cout<<"Press numpad0 to toggle the crosshair on and off\n"; CreateThread(0,0,(LPTHREAD_START_ROUTINE)CrossThread,0,0,0); while(1) { if(crosshairon==true) { for(int i=0;i<crosshairsize;i++) { SetPixel(ragedc, cx+i, cy+((crosshairsize-1)/2), RGB(255,0,0)); SetPixel(ragedc, cx+((crosshairsize-1)/2), cy+i, RGB(0,0,255)); }
if(crosshairon==false) for(int i=1;i<crosshairsize;i++) { SetPixel(ragedc, cx+i, cy+((crosshairsize-1)/2), RGB(0,0,0)); SetPixel(ragedc, cx+((crosshairsize-1)/2), cy+i, RGB(0,0,0)); } } Sleep(33); } }
NB : - Kalo Mau ganti warna Crosshairnya, gw rasa pada Udah tau ya..? - Buat Yang mau Tambahin Wallhack dan Chams Silahkan.. Tapi, Penyusunan SCnya harus Rapih dan Tepat, jangan di JAdiin Es..Campur Jika Cara Di atas Failed.. mari kita coba dengan DX8 Langusng Ke TKP...! - Code:
-
//Globals float ScreenCenterX = 0.0f;//Horizontal Position float ScreenCenterY = 0.0f;//Vertical Position bool xhair = false; D3DCOLOR redt = D3DCOLOR_XRGB( 255, 0, 0 );
www.cyber-stars.forumid.net bagian SetViewport tambahkan ini ScreenCenterX = ( float )pViewport->Width / 2; ScreenCenterY = ( float )pViewport->Height / 2;
www.cyber-stars.forumid.net EndScene if(xhair) { D3DRECT rec2 = {ScreenCenterX-20, ScreenCenterY, ScreenCenterX+ 20, ScreenCenterY+2}; D3DRECT rec3 = {ScreenCenterX, ScreenCenterY-20, ScreenCenterX+ 2,ScreenCenterY+20}; m_pD3Ddev->Clear(1, &rec2, D3DCLEAR_TARGET,redt, 0, 0); m_pD3Ddev->Clear(1, &rec3, D3DCLEAR_TARGET,redt, 0, 0); } Hotkeys SC Diatas Silahkan Tambahkan Sendiri NB : SC kedua-keduanya Work di Semua Game yang make OpenGL ato D3D Credit SC pertama : Adrian S. Hunawa Credit SC Kedua : Vipcit NothinG Is PerF3cT Please No Junk Di Thread Saya Tapi Kalau Thread Saya Berguna Tolong Klik Tanda + Di Pojok Kanan Bawah | |
|