Update Cheat XSHOT Free Sekalian Sale D3D Menu 6 Juli 2014

Wah Kalian Semua dah Lama Nunggu Kami Update Cheat Ya Ini Kami Update Cheat Xshot Sekalian Sale Cheat Ini Sudah Lama Ingin Kami Update Tetapi Internet Saya Sedang Eror a





                                                                   Cheat Ini VIP








Download Yang Trial Sampai Ganti Versi 
Dropbox: KLICK

New Cheat Release Versi Beta,23 Maret 2014

Maaf Nya Para Cheaters Kalian Jadi Lama Nunggu Kami Update Ni Cheat Nya Fast
                                             
                                                                         LINK 
Langsung Aja Bahas Feature Nya
Wallhack 90%
Wallhack Glass
No Smoke (Not Work)
Contrast Map (Not Work)
Dan Lain Lain Pegel Nulisnya

Come Back Update BASE PB + LS 14,Maret 2014

BASE CHEAT PB REPLACE WEAPON
BUAT YA SENDIRI LAGI TRY OUT

Replace.h
#include <Windows.h>
#include <fstream>

#define BASE_PAYER  0x61E080//0x5F1C90
//#define BaseWeapon  0x640424
#define Index1  /*0x890*/0x8A8
#define Index2  /*0x898*/0x8B0
#define Index3  /*0x894*/0x670
//#define Index4  0x67C

void okedeh(unsigned long ulBase, int iOffset, int iValue)//PatchOffsetMemory
{
if (!IsBadReadPtr((VOID*)ulBase, sizeof(unsigned long)))
{
if (!IsBadWritePtr((void*)(*(unsigned long*)ulBase + iOffset), sizeof(unsigned long)))
{
*(int*)(*(unsigned long*)ulBase + iOffset) = iValue;
}
}
}
DWORD WINAPI ThreadReplace(LPVOID param)
{
    int On = 0;
    int SenjataOKE = 0;
    int RWeapon = 0;
    int replace1 = 0;
OrangGantengONN:
//--------------hotkey on-off replace----------------------//
    if (GetAsyncKeyState(VK_HOME)& 1){//On
MessageBeep(0);
        On = 1;
    }
    if (GetAsyncKeyState(VK_END)& 1){//Off
        On = 0;
MessageBeep(0);
        SenjataOKE = 0; 
    }
//-------------------------------------------------------------------------------------------------//
if (On == 0){
        Sleep(10);
        goto OrangGantengONN;
}
RWeapon = 0x10;

if(cItem.assaults)
{
if (cItem.assaults== 1){
        int i;
w1:
        for (i = 0 ; i <= 15 ; i++){

DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x5F5ECF2);// FAMAS BEBD1CDmp7sarap BEBD1C0mcd 11E1B6A7m70 11E1B6A8barret m82a1 11E1B6A5 MA12 17D79B82 spass sl MCS
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); //
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
             //okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);
        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w1;
        Sleep(1);
        goto OrangGantengONN;
    }
if (cItem.assaults== 2){
        int i;
w2:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x05F5ECE0);//aug
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76);
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);
        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w2;
        Sleep(1);
        goto OrangGantengONN;
    }
if (cItem.assaults== 3){
        int i;
w3:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x5F5ECF1);//vs52
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76);
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D29027); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);
        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w3;
        Sleep(1);
        goto OrangGantengONN;
    }
if (cItem.assaults== 4){
        int i;
w4:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x5F5ECEC);// famas m283
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76);
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);
        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w4;
        Sleep(1);
        goto OrangGantengONN;
    }
if (cItem.assaults==5){
        int i; 
w5:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x5F5ECD9);//ak 20%
// okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76);
// okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);
        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w5;
        Sleep(1);
        goto OrangGantengONN;
    }
if (cItem.assaults== 6){
        int i; 
w6:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x5F5ECE5);//m4sc16 FC
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76);
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
// okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);
        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w6;
        Sleep(1);
        goto OrangGantengONN;
    }
}
if (cItem.smgs)
{
if (cItem.smgs== 1){
        int i; 
w7:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0xBEBD1BF);//kriss svd
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76);
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);
        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w7;
        Sleep(1);
        goto OrangGantengONN;
    }
if (cItem.smgs== 2){
        int i; 
w8:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0xBEBD1AA);//batik
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76);
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w8;
        Sleep(1);
        goto OrangGantengONN;
    }
    
if (cItem.smgs== 3){
        int i; 
w9:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0xBEBD1C0);// P90 MCD
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76);
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);
 
        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w9;
        Sleep(1);
        goto OrangGantengONN;
    }

if (cItem.smgs== 4){
        int i; 
w10:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0xBEBD1BD);// P90 D
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); // Combate
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w10;
        Sleep(1);
        goto OrangGantengONN;
    }

if (cItem.smgs== 5){
        int i; 
w11:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0xBEC0857);//dua uzi
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); // Combate
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w11;
        Sleep(1);
        goto OrangGantengONN;
    }
}
if (cItem.sgs)
{
if (cItem.sgs== 1){
        int i; 
w12:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x17D79B79);//spass SI
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); // Combate
////okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D29017); // .........
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w12;
        Sleep(1);
        goto OrangGantengONN;
    }

if (cItem.sgs== 2){
        int i; 
w13:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x17D79B7C);//SPASS . D
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); // Combate
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w13;
        Sleep(1);
        goto OrangGantengONN;
    }

if (cItem.sgs== 3){
        int i; 
w14:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec"); 
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x17D79B82);//spass MCS
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); // Combate
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w14;
        Sleep(1);
        goto OrangGantengONN;
    }

if (cItem.sgs== 4){
        int i; 
w15:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec");
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x17D79B75);//SG putar
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); // Combate
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w15;
        Sleep(1);
        goto OrangGantengONN;
    }
if (cItem.sgs== 5){
        int i; 
w16:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec"); 
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x17D79B83);//jackhammer
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); // Combate
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // C Phyton
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w16;
        Sleep(1);
        goto OrangGantengONN;
    }
}

if (cItem.awps){
if (cItem.awps== 1){
        int i; 
w17:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec"); 
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x11E1B699);//magnum
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); // Combate
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D29011); // uzzy
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w17;
        Sleep(1);
        goto OrangGantengONN;
    }

if (cItem.awps== 2){
        int i; 
w18:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec"); 
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x11E1B6A6);// cytac 200m
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); // Combate
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // Glock18
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w18;
        Sleep(1);
        goto OrangGantengONN;
    }
if (cItem.awps== 3){
        int i; 
w19:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec"); 
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x11E1B693);// dragunnov
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); // Combate
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // Glock18
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w19;
        Sleep(1);
        goto OrangGantengONN;
    }
if (cItem.awps== 4){
        int i; 
w20:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec"); 
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x11E1B6A8);// barret 
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); // Combate
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // Glock18
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w20;
        Sleep(1);
        goto OrangGantengONN;
    }
if (cItem.awps== 5){
        int i; 
w21:
        for (i = 0 ; i <= 15 ; i++){
DWORD i3ExecBase = (DWORD)GetModuleHandle("Pointblank.i3exec"); 
             okedeh(i3ExecBase + BASE_PAYER, Index1 + (i*0x150), 0x11E1B69F);// range master stby
okedeh(i3ExecBase + BASE_PAYER, Index2 + (i*0x150), 0x29D7AF76); // Combate
//okedeh(i3ExecBase + BASE_PAYER, Index3 + (i*0x150), 0x23D2901B); // Glock18
//okedeh(i3ExecBase + BASE_PAYER, 0x678 + (i*0x150), 0x2FDCEA20);
//okedeh(i3ExecBase + BASE_PAYER, 0x67C + (i*0x150), 0X35E20D5D);

        }
        RWeapon = RWeapon - 1;
        if (RWeapon > 0) goto w21;
        Sleep(1);
        goto OrangGantengONN;
    }
}
//------------------------------------------------------------------------------------------------------------------------------//
Sleep(50);
    goto OrangGantengONN;

}

cMain.cpp
#include <windows.h>
#include <stdio.h>
#include <d3d9.h>
#include <d3dx9.h>
#include "cMain.h"
#include "cMenu.h"
#include "asm.h"
#include "Replace.h"
#pragma comment(lib, "wininet.lib")
/*________________________________________________________________________________________________________________________________________________________*/
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")
char String[100];
/*________________________________________________________________________________________________________________________________________________________*/
#define HOOK(func,addy) o##func = (t##func)CreateDetour((DWORD)hk##func,(DWORD)addy,Detour_Type_0xB8,7)
#define UNHOOK(func,addy) o##func = (t##func)CreateDetour((DWORD)o##func,(DWORD)addy,Detour_Type_0xB8,7)
#define ES  0 
#define DIP 1 

DWORD DIPDIPDIPAN, ESESAN;
#define DrawIndex 0x00181CDA
#define EndS 0x00182E91
/*________________________________________________________________________________________________________________________________________________________*/
LPD3DXLINE      g_pLine = NULL; //D3D Line
D3DVIEWPORT9    g_ViewPort; //ViewPort 
/*________________________________________________________________________________________________________________________________________________________*/
#define SMOKE (NumVertices == 192 || primCount == 52 || NumVertices == 256)
/*________________________________________________________________________________________________________________________________________________________*/
cSound Sound;
cDetours *cDetour;
D3D9Menu *sCReam = NULL;
ID3DXFont *menuCapFont;
LPDIRECT3DDEVICE9 npDevice; 
LPDIRECT3DDEVICE9 pDevice;
DWORD dwD3D9 = NULL;
/*________________________________________________________________________________________________________________________________________________________*/
int mx = 150; // POSISI AWAL MENU 84 ngatur geser menunya
int my = 105; // silahkan edit 100
POINT myCursor; 
int texnum;
void HoverFunctions();
/*________________________________________________________________________________________________________________________________________________________*/
CHAR TimeAndDate[MAX_PATH];
time_t TimeValue;
INT Fps = 0;
FLOAT LastTickCount = 0.0f;
FLOAT CurrentTickCount;
CHAR FrameRate[50] = "";
/*________________________________________________________________________________________________________________________________________________________*/
//________________crosshair______________________//
D3DVIEWPORT9 Viewport;
ID3DXLine *pLine;
D3DXVECTOR2 CrosshairX[2], CrosshairY[2];
/*________________________________________________________________________________________________________________________________________________________*/
HRESULT GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)
{
    if(FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex, NULL)))
        return E_FAIL;
    
    WORD colour16 = ((WORD)((colour32>>28)&0xF)<<12)
            |(WORD)(((colour32>>20)&0xF)<<8)
            |(WORD)(((colour32>>12)&0xF)<<4)
                  |(WORD)(((colour32>>4)&0xF)<<0);

    D3DLOCKED_RECT d3dlr;    
    (*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
    WORD *pDst16 = (WORD*)d3dlr.pBits;

    for(int xy=0; xy < 8*8; xy++)
        *pDst16++ = colour16;

    (*ppD3Dtex)->UnlockRect(0);

    return S_OK;
}
/*________________________________________________________________________________________________________________________________________________________*/
INT xNum = 0;

void TriggerBotBlue()
{
COLORREF cPixelb;
COLORREF cPixelb2;

HWND d3dhwnd2;
HDC d3ddc2;

d3dhwnd2 = GetForegroundWindow();
d3ddc2 = GetDC(d3dhwnd2);
{
cPixelb = GetPixel( d3ddc2, (Viewport.Width/2)-3, (Viewport.Height/2)-2);
cPixelb2 = GetPixel( d3ddc2, (Viewport.Width/2)+3, (Viewport.Height/2)-2);
if(GetRValue(cPixelb)<= 100 && GetGValue(cPixelb)<= 100 && GetBValue(cPixelb)>= 200 && GetRValue(cPixelb2)<= 100 && GetGValue(cPixelb2)<= 100 && GetBValue(cPixelb2)>= 200)
{
mouse_event(MOUSEEVENTF_RIGHTDOWN | MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0); // Right click
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); // Left click
}
}
ReleaseDC(d3dhwnd2,d3ddc2);
}

void TriggerBotRed()
{
COLORREF cPixelr;
COLORREF cPixelr2;

HWND d3dhwnd;
HDC d3ddc;

d3dhwnd = GetForegroundWindow();
d3ddc = GetDC(d3dhwnd);
{
cPixelr = GetPixel( d3ddc, (Viewport.Width/2)-3, (Viewport.Height/2)-2);
cPixelr2 = GetPixel( d3ddc, (Viewport.Width/2)+3, (Viewport.Height/2)-2);
if(GetRValue(cPixelr)>= 220 && GetGValue(cPixelr)<= 100 && GetBValue(cPixelr)<= 100 && GetRValue(cPixelr2)>= 220 && GetGValue(cPixelr2)<= 100 && GetBValue(cPixelr2)<= 100)
{
mouse_event(MOUSEEVENTF_RIGHTDOWN | MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0); // Right click
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); // Left click
}
}
ReleaseDC(d3dhwnd,d3ddc);
}
/*________________________________________________________________________________________________________________________________________________________*/
LPDIRECT3DVERTEXBUFFER9 Stream_Data;
UINT Offset = 0;
UINT Stride = 0;
/*________________________________________________________________________________________________________________________________________________________*/
typedef HRESULT (WINAPI* tDrawIndexedPrimitive)(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE PrimType,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount);
tDrawIndexedPrimitive oDrawIndexedPrimitive = NULL;
/*________________________________________________________________________________________________________________________________________________________*/
void RebuildMenu(LPDIRECT3DDEVICE9 pDevice)
{
  sCReam->AddFolder("[WEAPON HACK]", Moptfolder, &cCat.d3d3, 2);
  if(cCat.d3d3)
  {
 sCReam->AddItem("ASSAULT" , assault , &cItem.assaults  , 5);
 sCReam->AddItem("SMG" , smg , &cItem.smgs  , 6);
 sCReam->AddItem("AWP" , awp , &cItem.awps  , 6);
 sCReam->AddItem("SG" , sg , &cItem.sgs  , 6);
  }
  sCReam->AddFolder("[TUTORIAL]", Moptfolder, &cCat.tutor, 2);
  if(cCat.tutor){
 sCReam->AddItem("Magnet:" ,NULLknop5 , &cItem.a , 1);
 sCReam->AddItem("Anti Program Ilegal" ,NULLknop6 , &cItem.c , 1);
 sCReam->AddItem("Hover:" ,NULLknop7 , &cItem.d , 1);
 sCReam->AddItem("Change Replace Weapon:" ,NULLknop4 , &cItem.b , 1);
  }

  sCReam->AddFolder("[AIM HACK]", Moptfolder, &cCat.d3d, 2);

  if(cCat.d3d
 sCReam->AddItem("Wallshoot" , Moptonoff , &cItem.hs1 , 2);
  }
 sCReam->AddText("Timotius Mikel", ijumas);
 sCReam->AddText("VIP MODE FREE", ijumas);
 sCReam->AddText("www.Dodolcheat2.blogspot.com", ijumas);

  /*D3DXCreateTextureFromFileInMemoryEx(pDevice
,&_cBody,sizeof(_cBody),205,sCReam->Mmax * 15,D3DX_DEFAULT,0,D3DFMT_UNKNOWN
,D3DPOOL_MANAGED,D3DX_DEFAULT,D3DX_DEFAULT,0,NULL,NULL,&txBody);
pFooter.x=55.0f; pFooter.y=sCReam->Mmax * 15 + 97.003980; pFooter.z=0.0f;*/
}

/*________________________________________________________________________________________________________________________________________________________*/
void CreateSprite(LPDIRECT3DDEVICE9 pDevice)
{
pHeader.x=20.0f; pHeader.y=5.0f; pHeader.z=0.0f;

if(txHeader == NULL)D3DXCreateTextureFromFileInMemoryEx(pDevice
,&_cHeader,sizeof(_cHeader),205,60,D3DX_DEFAULT,0,D3DFMT_UNKNOWN
,D3DPOOL_MANAGED,D3DX_DEFAULT,D3DX_DEFAULT,0,NULL,NULL,&txHeader);
if(spHeader == NULL)D3DXCreateSprite(pDevice, &spHeader);
}
/*_____________________________________ HOVER ___________________________________________________________________________________________________________________*/

HRESULT WINAPI hkEndScene(LPDIRECT3DDEVICE9 pDevice)
{
    
    while(!npDevice) {
        npDevice = pDevice;                      
    }

if(cItem.crosshair)
{
D3DVIEWPORT9 viewP;
pDevice->GetViewport( &viewP );
DWORD ScreenCenterX = viewP.Width / 2; 
DWORD ScreenCenterY = viewP.Height / 2; 

D3DRECT rec1 = {ScreenCenterX-35, ScreenCenterY, ScreenCenterX+ 35, ScreenCenterY+1};
D3DRECT rec2 = {ScreenCenterX, ScreenCenterY-35, ScreenCenterX+ 1,ScreenCenterY+35};  

if(cItem.crosshair==1)
{
pDevice->Clear( 1, &rec1, D3DCLEAR_TARGET, D3DXCOLOR(0.62745098, 0.125490, 0.959999, 1.0), 0,  0 );//purple
pDevice->Clear( 1, &rec2, D3DCLEAR_TARGET, D3DXCOLOR(0.62745098, 0.125490, 0.959999, 1.0), 0,  0 ); 
}
if(cItem.crosshair==2)
{
pDevice->Clear( 1, &rec1, D3DCLEAR_TARGET, D3DXCOLOR(0.0, 0.0, 1.0, 1.0), 0,  0 );//blue
pDevice->Clear( 1, &rec2, D3DCLEAR_TARGET, D3DXCOLOR(0.0, 0.0, 1.0, 1.0), 0,  0 ); 
}
if(cItem.crosshair==3)
{
pDevice->Clear( 1, &rec1, D3DCLEAR_TARGET, D3DXCOLOR(0.0, 1.0, 1.0, 1.0), 0,  0 );//cyan
pDevice->Clear( 1, &rec2, D3DCLEAR_TARGET, D3DXCOLOR(0.0, 1.0, 1.0, 1.0), 0,  0 );
}
if(cItem.crosshair==4)
{
pDevice->Clear( 1, &rec1, D3DCLEAR_TARGET, D3DXCOLOR(0.0, 1.0, 0.0, 1.0), 0,  0 );// green
pDevice->Clear( 1, &rec2, D3DCLEAR_TARGET, D3DXCOLOR(0.0, 1.0, 0.0, 1.0), 0,  0 );
}
if(cItem.crosshair==5)
{
pDevice->Clear( 1, &rec1, D3DCLEAR_TARGET, D3DXCOLOR(1.0, 1.0, 0.0, 1.0), 0,  0 );// yellow
pDevice->Clear( 1, &rec2, D3DCLEAR_TARGET, D3DXCOLOR(1.0, 1.0, 0.0, 1.0), 0,  0 );
}
if(cItem.crosshair==6)
{
pDevice->Clear( 1, &rec1, D3DCLEAR_TARGET, D3DXCOLOR(1.0, 0.549019608, 0.0, 1.0), 0,  0 );// orange
pDevice->Clear( 1, &rec2, D3DCLEAR_TARGET, D3DXCOLOR(1.0, 0.549019608, 0.0, 1.0), 0,  0 );
}
if(cItem.crosshair==7)
{
pDevice->Clear( 1, &rec1, D3DCLEAR_TARGET, D3DXCOLOR(1.0, 0.0, 0.0, 1.0), 0,  0 );//red
pDevice->Clear( 1, &rec2, D3DCLEAR_TARGET, D3DXCOLOR(1.0, 0.0, 0.0, 1.0), 0,  0 );
}
if(cItem.crosshair==8)
{
D3DRECT rec4 = {ScreenCenterX-35, ScreenCenterY, ScreenCenterX+ 35, ScreenCenterY+1};
D3DRECT rec5 = {ScreenCenterX, ScreenCenterY-35, ScreenCenterX+ 1,ScreenCenterY+35};  
pDevice->Clear( 1, &rec4, D3DCLEAR_TARGET, D3DXCOLOR(0.62745098, 0.125490, 0.959999, 1.0), 0,  0 );//purple
pDevice->Clear( 1, &rec5, D3DCLEAR_TARGET, D3DXCOLOR(0.62745098, 0.125490, 0.959999, 1.0), 0,  0 ); 

D3DRECT rec6 = {ScreenCenterX-30, ScreenCenterY, ScreenCenterX+ 30, ScreenCenterY+1};
D3DRECT rec7 = {ScreenCenterX, ScreenCenterY-30, ScreenCenterX+ 1,ScreenCenterY+30};  
pDevice->Clear( 1, &rec6, D3DCLEAR_TARGET, D3DXCOLOR(0.0, 0.0, 1.0, 1.0), 0,  0 );//blue
pDevice->Clear( 1, &rec7, D3DCLEAR_TARGET, D3DXCOLOR(0.0, 0.0, 1.0, 1.0), 0,  0 ); 

D3DRECT rec8 = {ScreenCenterX-25, ScreenCenterY, ScreenCenterX+ 25, ScreenCenterY+1};
D3DRECT rec9 = {ScreenCenterX, ScreenCenterY-25, ScreenCenterX+ 1,ScreenCenterY+25};  
pDevice->Clear( 1, &rec8, D3DCLEAR_TARGET, D3DXCOLOR(0.0, 1.0, 1.0, 1.0), 0,  0 );//cyan
pDevice->Clear( 1, &rec9, D3DCLEAR_TARGET, D3DXCOLOR(0.0, 1.0, 1.0, 1.0), 0,  0 );

D3DRECT rec10 = {ScreenCenterX-20, ScreenCenterY, ScreenCenterX+ 20, ScreenCenterY+1};
D3DRECT rec11 = {ScreenCenterX, ScreenCenterY-20, ScreenCenterX+ 1,ScreenCenterY+20};  
pDevice->Clear( 1, &rec10, D3DCLEAR_TARGET, D3DXCOLOR(0.0, 1.0, 0.0, 1.0), 0,  0 );// green
pDevice->Clear( 1, &rec11, D3DCLEAR_TARGET, D3DXCOLOR(0.0, 1.0, 0.0, 1.0), 0,  0 );

D3DRECT rec12 = {ScreenCenterX-15, ScreenCenterY, ScreenCenterX+ 15, ScreenCenterY+1};
D3DRECT rec13 = {ScreenCenterX, ScreenCenterY-15, ScreenCenterX+ 1,ScreenCenterY+15};  
pDevice->Clear( 1, &rec12, D3DCLEAR_TARGET, D3DXCOLOR(1.0, 1.0, 0.0, 1.0), 0,  0 );// yellow
pDevice->Clear( 1, &rec13, D3DCLEAR_TARGET, D3DXCOLOR(1.0, 1.0, 0.0, 1.0), 0,  0 );

D3DRECT rec14 = {ScreenCenterX-10, ScreenCenterY, ScreenCenterX+ 10, ScreenCenterY+1};
D3DRECT rec15 = {ScreenCenterX, ScreenCenterY-10, ScreenCenterX+ 1,ScreenCenterY+10};  
pDevice->Clear( 1, &rec14, D3DCLEAR_TARGET, D3DXCOLOR(1.0, 0.549019608, 0.0, 1.0), 0,  0 );// orange
pDevice->Clear( 1, &rec15, D3DCLEAR_TARGET, D3DXCOLOR(1.0, 0.549019608, 0.0, 1.0), 0,  0 );

D3DRECT rec16 = {ScreenCenterX-5, ScreenCenterY, ScreenCenterX+ 5, ScreenCenterY+1};
D3DRECT rec17 = {ScreenCenterX, ScreenCenterY-5, ScreenCenterX+ 1,ScreenCenterY+5};  
pDevice->Clear( 1, &rec16, D3DCLEAR_TARGET, D3DXCOLOR(1.0, 0.0, 0.0, 1.0), 0,  0 );//red
pDevice->Clear( 1, &rec17, D3DCLEAR_TARGET, D3DXCOLOR(1.0, 0.0, 0.0, 1.0), 0,  0 );
}
}

if(cItem.fFPS)
{
pDevice->GetViewport(&Viewport);
float ScreenCenterX = (float)Viewport.Width / 2 + Viewport.X +1;
float ScreenCenterY = (float)Viewport.Height / 10 + Viewport.Y;

CurrentTickCount = clock() * 0.001f;
Fps++;

if((CurrentTickCount - LastTickCount) > 1.0f)
{
LastTickCount = CurrentTickCount;
sprintf(FrameRate, "[ FPS: %d ]", Fps);
Fps = 0;
}
sCReam->DrawTextL(ScreenCenterX+35,ScreenCenterY, dGreen ,FrameRate);
}

if(cItem.ftime)
{
pDevice->GetViewport(&Viewport);
float ScreenCenterX = (float)Viewport.Width / 2 + Viewport.X +1;
float ScreenCenterY = (float)Viewport.Height / 10 + Viewport.Y;

TimeValue = time(NULL);
strftime(TimeAndDate, MAX_PATH, "[ %a - %b %d - %I:%M %p ]", localtime(&TimeValue));

sCReam->DrawTextL(ScreenCenterX+35,ScreenCenterY+15, dGreen ,TimeAndDate);
}

if(cItem.mousemove)
{
GetCursorPos(&myCursor); // get the cursor position.
if(GetAsyncKeyState(VK_LBUTTON) & (VK_CONTROL)) 
{
mx = myCursor.x+12.0f;
my = myCursor.y;

//pHeader.x=-10+myCursor.x; pHeader.y=-99.0f+myCursor.y; pHeader.z=0.0f;
pBody.x=-10+myCursor.x; pBody.y=0.0f+myCursor.y; pBody.z=0.0f;
pFooter.x=-10+myCursor.x; pFooter.y=sCReam->Mmax * 15 + myCursor.y; pFooter.z=0.0f;
}
}

if(cItem.trigb)
{
if(cItem.trigb==1) TriggerBotRed();
if(cItem.trigb==2) TriggerBotBlue();
}

/*________________________________________________________________________________________________________________________________________________________*/
if( !Create )
{
sCReam->FontCreate(pDevice);
CreateSprite(pDevice);
Create = true;
}

if(sCReam->Font() )
sCReam->OnLostDevice();
else
{
if(sCReam == NULL)
{
sCReam = new D3D9Menu("Menu Sprited");
}else{
if(sCReam->Mmax==0) RebuildMenu(pDevice);

sCReam->MenuShow(mx,my,pDevice); //init for pb
sCReam->MenuNav();
//____ Header Nampak Only _______//
spHeader->Begin(D3DXSPRITE_ALPHABLEND);
spHeader->Draw(txHeader, NULL, NULL, &pHeader, 0xFFFFFFFF);
spHeader->End();

}
}
/*________________________________________________________________________________________________________________________________________________________*/
    pDevice->GetViewport(&g_ViewPort);
    return oEndScene(pDevice);
}
/*________________________________________________________________________________________________________________________________________________________*/
HRESULT WINAPI hkDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE PrimType,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount)
{
    if(pDevice->GetStreamSource(0, &Stream_Data, &Offset, &Stride) == D3D_OK)
        Stream_Data->Release();
/*________________________________________________________________________________________________________________________________________________________*/
if(Color)
{
GenerateTexture(pDevice, &White,  WHITE2);
GenerateTexture(pDevice, &Red,    RED2);
GenerateTexture(pDevice, &Green,  GREEN2);
GenerateTexture(pDevice, &Blue,   BLUE2);
GenerateTexture(pDevice, &Black,  BLACK2);
GenerateTexture(pDevice, &Purple, PURPLE2);
GenerateTexture(pDevice, &Grey,   GREY2);
GenerateTexture(pDevice, &Yellow, YELLOW2);
GenerateTexture(pDevice, &Orange, ORANGE2);
Color = false;
}
/*________________________________________________________________________________________________________________________________________________________*/
if(cItem.wh3)
{
if(primCount==504 || primCount==2442 || NumVertices==85 || NumVertices==1184 || K400)
{
pDevice->SetRenderState( D3DRS_ZENABLE,false );
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
oDrawIndexedPrimitive(pDevice, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    pDevice->SetRenderState( D3DRS_ZENABLE, true );
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
}
if(primCount==526 || primCount==1404 ||primCount==1737)
{
pDevice->SetRenderState( D3DRS_ZENABLE,false );
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
oDrawIndexedPrimitive(pDevice, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    pDevice->SetRenderState( D3DRS_ZENABLE, true );
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
}
}
if(cItem.wh4)
{
if(primCount==504 || primCount==2442 || NumVertices==85 || NumVertices==1184 || K400 || C5)
{
pDevice->SetRenderState( D3DRS_ZENABLE,false );
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
pDevice->SetTexture( 0, White );
oDrawIndexedPrimitive(pDevice, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    pDevice->SetRenderState( D3DRS_ZENABLE, true );
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
pDevice->SetTexture( 0, White );
}

if(primCount==526 || primCount==1404 ||primCount==1737 || K400 || C5)
{
pDevice->SetRenderState( D3DRS_ZENABLE,false );
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
pDevice->SetTexture( 0, Purple );
oDrawIndexedPrimitive(pDevice, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    pDevice->SetRenderState( D3DRS_ZENABLE, true );
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
pDevice->SetTexture( 0, Purple );
}
}

if(cItem.police1)
{
if(Leopard)
{
pDevice->SetRenderState( D3DRS_ZENABLE,false );
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
pDevice->SetTexture( 0, Yellow );
oDrawIndexedPrimitive(pDevice, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    pDevice->SetRenderState( D3DRS_ZENABLE, true );
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
pDevice->SetTexture( 0, Yellow );
}
}

if(cItem.police2)
{
if(Dino)
{
pDevice->SetRenderState( D3DRS_ZENABLE,false );
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
pDevice->SetTexture( 0, Blue );
oDrawIndexedPrimitive(pDevice, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    pDevice->SetRenderState( D3DRS_ZENABLE, true );
pDevice->SetRenderState( D3DRS_FILLMODE,D3DFILL_SOLID );
pDevice->SetTexture( 0, Blue );
}
}



if(cItem.colorw)
{
if( (Stride == 52) )
{
if(cItem.colorw==1) pDevice->SetTexture(0, White);
if(cItem.colorw==2) pDevice->SetTexture(0, Red);
if(cItem.colorw==3) pDevice->SetTexture(0, Green);
if(cItem.colorw==4) pDevice->SetTexture(0, Blue);
if(cItem.colorw==5) pDevice->SetTexture(0, Black);
if(cItem.colorw==6) pDevice->SetTexture(0, Purple);
if(cItem.colorw==7) pDevice->SetTexture(0, Grey);
if(cItem.colorw==8) pDevice->SetTexture(0, Yellow);
if(cItem.colorw==9) pDevice->SetTexture(0, Orange);
}
}

if(cItem.fog)
{
pDevice->SetRenderState(D3DRS_FOGENABLE, FALSE);
}

if(cItem.asus)
{
if (Stride == 40)
{
pDevice->SetRenderState( D3DRS_SRCBLEND, 3 );
pDevice->SetRenderState( D3DRS_DESTBLEND, 4 );
pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, true );
}
}

if (cItem.bloodbulletssmoke)
{
if ((Stride == 24) || (Stride == 23))
{
DWORD dwOldZEnable;
pDevice->GetRenderState(D3DRS_ZENABLE,&dwOldZEnable);
pDevice->SetRenderState(D3DRS_ZENABLE,D3DZB_FALSE);
oDrawIndexedPrimitive(pDevice, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
pDevice->SetRenderState(D3DRS_ZENABLE,dwOldZEnable);
}
}

if (cItem.smoke){
if(SMOKE){
return D3D_OK;
}
}
/*________________________________________________________________________________________________________________________________________________________*/
if (cItem.exitgame) { ExitProcess(0);}
/*________________________________________________________________________________________________________________________________________________________*/
    return oDrawIndexedPrimitive(pDevice, PrimType, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}
/*________________________________________________________________________________________________________________________________________________________*/
/*____________________________HOOKING D3D VTABLE____________________________________________________________________________________________________________________________*/

LRESULT CALLBACK MsgProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam){return DefWindowProc(hwnd, uMsg, wParam, lParam);}
void DX_Init(DWORD* table)
{
    WNDCLASSEX wc = {sizeof(WNDCLASSEX),CS_CLASSDC,MsgProc,0L,0L,GetModuleHandle(NULL),NULL,NULL,NULL,NULL,"DX",NULL};
    RegisterClassEx(&wc);
    HWND hWnd = CreateWindow("DX",NULL,WS_OVERLAPPEDWINDOW,100,100,300,300,GetDesktopWindow(),NULL,wc.hInstance,NULL);
    LPDIRECT3D9 pD3D = Direct3DCreate9( D3D_SDK_VERSION );
    D3DPRESENT_PARAMETERS d3dpp;
    ZeroMemory( &d3dpp, sizeof(d3dpp) );
    d3dpp.Windowed = TRUE;
    d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
    d3dpp.BackBufferFormat = D3DFMT_UNKNOWN;
    LPDIRECT3DDEVICE9 pd3dDevice;
    pD3D->CreateDevice(D3DADAPTER_DEFAULT,D3DDEVTYPE_HAL,hWnd,D3DCREATE_SOFTWARE_VERTEXPROCESSING,&d3dpp,&pd3dDevice);
    DWORD* pVTable = (DWORD*)pd3dDevice;
    pVTable = (DWORD*)pVTable[0];
    table[ES]   = pVTable[42];
    table[DIP]  = pVTable[82];
    DestroyWindow(hWnd);
}
DWORD WINAPI HotkeyFunctionUndetect(LPVOID  Param)
{
    while(1)
{
/*Sleep(350);
VirtualiZerFromHk((PDWORD*)npDevice, (PBYTE)0x4FF50A4B,82);
VirtualiZerFromHk((PDWORD*)npDevice, (PBYTE)0x4FF51CCA,42);*/
Sleep(350);
            DWORD IAT = (DWORD) GetModuleHandleA("d3d9.dll");
            DIPDIPDIPAN = IAT + (DWORD) + DrawIndex;
            ESESAN = IAT + (DWORD) + EndS;
            VirtualiZerFromHk((PDWORD*)npDevice, (PBYTE)DIPDIPDIPAN, 82);
            VirtualiZerFromHk((PDWORD*)npDevice, (PBYTE)ESESAN, 42);
}
return 1;
}
bool hooked = false;
DWORD WINAPI LoopFunction1( LPVOID lpParam )
{
if( hooked == false) {
DWORD VTable[3] = {0};
while(GetModuleHandle("d3d9.dll")==NULL) {
Sleep(50); //350 250
}
DX_Init(VTable);
HOOK(EndScene,VTable[ES]);

while(!npDevice) {
Sleep(100); //150 50
}
UNHOOK(EndScene, VTable[ES]);

DWORD IAT = (DWORD) GetModuleHandleA("d3d9.dll");
            DIPDIPDIPAN = IAT + (DWORD) + DrawIndex;
            ESESAN = IAT + (DWORD) + EndS;

void* d3DIP = (void*)(dwD3D9 + (DWORD) + (DWORD) + (DWORD) + (PDWORD)DIPDIPDIPAN );
            void* d3ES = (void*)(dwD3D9 + (DWORD) + (DWORD) + (DWORD) + (PDWORD)ESESAN );

            {
int i;
for (i = 0+0 ; i <= 0 ; i++){
DWORD d,ds;
VirtualProtect((void*)(d3ES), 4, PAGE_EXECUTE_READWRITE, &d);
memcpy(d3ES,(void*)(d3ES), 4);  
VirtualProtect((void*)(d3ES), 4, d, &ds);
}
}
int i;
for (i = 0+0 ; i <= 0 ; i++){
{
DWORD d,ds;
VirtualProtect((void*)(d3DIP), 4, PAGE_EXECUTE_READWRITE, &d);
memcpy(d3DIP,(void*)(d3DIP), 4);  
VirtualProtect((void*)(d3DIP), 4, d, &ds);
}
}
            CreateDetour((DWORD)hkDrawIndexedPrimitive, (DWORD)d3DIP*i,Detour_Type_0xB8,12);
            CreateDetour((DWORD)hkEndScene, (DWORD)d3ES*i,Detour_Type_0xB8,12);

            *(PDWORD)&oDrawIndexedPrimitive = VTable[DIP];
            *(PDWORD)&oEndScene = VTable[ES];
            CreateThread(NULL, 0, HotkeyFunctionUndetect, NULL, 0, NULL);
            hooked = true;
            }
    Sleep(-0);
return 0;
}
/*int IPMasbro(char *url){
char output[16];
HINTERNET hInternet;HINTERNET hFile;DWORD ReadSize; BOOL bResult;

hInternet = InternetOpen("Some USER-AGENT", INTERNET_OPEN_TYPE_PRECONFIG,NULL,NULL, NULL);
hFile = InternetOpenUrl(hInternet, url, NULL,NULL, INTERNET_FLAG_RELOAD,NULL);

ReadSize = 15;Sleep (500);bResult = InternetReadFile( hFile, output, 15, &ReadSize); output[ReadSize] = '\0';
if(strcmp("125.162.63.140",output)==0){// 180.241.129.71
}else {
MessageBox(0, "ERORR.....IP ADDRESS......","Error", MB_ICONERROR | MB_TOPMOST);
ExitProcess(0);
}
return 0;
}

void __stdcall IPCheck()
{
IPMasbro("http://x-lonz.us/ip.php");
}*/
/*________________________________________________________________________________________________________________________________________________________*/
BOOL WINAPI DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpvReserved)
{
    if(dwReason == DLL_PROCESS_ATTACH) {
MessageBox(0,"www.Dodolcheat2.blogspot.com","www.Dodolcheat2.blogspot.com",MB_ICONINFORMATION);
        //CheckValidHardwareID();
//IPCheck();
CreateThread(0, 0, LoopFunction1, 0, 0, 0);
CreateThread(0, 0, RepacX, 0, 0, 0);
// CreateThread(0, 0, (LPTHREAD_START_ROUTINE)StartThreadCallingFunction, 0, 0, 0);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)ThreadReplace, 0, 0, 0);
    }
   // else if(dwReason == DLL_PROCESS_DETACH) {
   // }
    return TRUE;
}

/*________________________________________________________________________________________________________________________________________________________*/


BUAT LAGI:
cMenu.cpp
#include <stdio.h>
#include "cMenu.h"

ID3DXFont *pFont1;

void D3D9Menu::AddFolder(char *txt, char **opt, int *var, int maxvalue)
{
  MENU[Mmax]->typ=MENUFOLDER;
  MENU[Mmax]->txt=txt;
  MENU[Mmax]->opt=opt;
  MENU[Mmax]->var=var;
  MENU[Mmax]->maxvalue=maxvalue;
  Mmax++;
}

void D3D9Menu::AddCategory(char *txt, char **opt, int *var, int maxvalue)
{
  MENU[Mmax]->typ=MENUCAT;
  MENU[Mmax]->txt=txt;
  MENU[Mmax]->opt=opt;
  MENU[Mmax]->var=var;
  MENU[Mmax]->maxvalue=maxvalue;
  Mmax++;
}

void D3D9Menu::AddItem(char *txt, char **opt, int *var, int maxvalue)
{
  MENU[Mmax]->typ=MENUITEM;
  MENU[Mmax]->txt=txt;
  MENU[Mmax]->opt=opt;
  MENU[Mmax]->var=var;
  MENU[Mmax]->maxvalue=maxvalue;
  Mmax++;
}

void D3D9Menu::DrawTextR(int x,int y,DWORD color,char *text)
{
    RECT rect, rect2;
    SetRect( &rect, x, y, x, y );
SetRect( &rect2, x - 0.1, y + 0.2, x - 0.1, y + 0. );
pFont1->DrawTextA(NULL,text,-1,&rect2, DT_LEFT|DT_NOCLIP, 0x00000000 );////////////// ON OFF MENGARAH KE KIRI
    pFont1->DrawTextA(NULL,text,-1,&rect, DT_LEFT|DT_NOCLIP, color );////////////////////
}

BOOL D3D9Menu::Font()
{
if(pFont1)
return FALSE;
else return TRUE;
}

void D3D9Menu::FontCreate(LPDIRECT3DDEVICE9 pDevice)
{
D3DXCreateFont(pDevice, 14, 0, FW_BOLD, 0, 0, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, (LPCSTR)"Times New Roman", &pFont1);
}

void D3D9Menu::FontReset()
{
pFont1->OnLostDevice();
pFont1->OnResetDevice();
}

void D3D9Menu::OnLostDevice()
{
pFont1->OnLostDevice();
}

void D3D9Menu::DrawTextL(int x,int y,DWORD color,char *text)
{
    RECT rect, rect2;
    SetRect( &rect, x, y, x, y );
SetRect( &rect2, x - 0.1, y + 0.2, x - 0.1, y + 0. );
pFont1->DrawTextA(NULL,text,-1,&rect2, DT_RIGHT|DT_NOCLIP, 0x00000000 );// menunya arah ke tengah
    pFont1->DrawTextA(NULL,text,-1,&rect, DT_RIGHT|DT_NOCLIP, color );
}

void D3D9Menu::DrawBox(LPDIRECT3DDEVICE9 pDevice, int x, int y, int w, int h)
{
D3DRECT rec;
rec.x1 = x;
rec.x2 = x + w;
rec.y1 = y;
rec.y2 = y + h;
pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, GREEN, 0, 0 );



void D3D9Menu::AddText(char *txt, char *opt)
{
MENU[Mmax]->typ=MENUTEXT;
MENU[Mmax]->txt=txt;
MENU[Mmax]->opt=(char **)opt;
MENU[Mmax]->var=0;
MENU[Mmax]->maxvalue=0;
Mmax++;
}

void D3D9Menu::DrawTextC(int x,int y,DWORD color,char *text)
{
    RECT rect, rect2;
    SetRect( &rect, x, y, x, y );
SetRect( &rect2, x - 0.1, y + 0.2, x - 0.1, y + 0. );
pFont1->DrawTextA(NULL,text,-1,&rect2, DT_CENTER|DT_NOCLIP, 0x00000000 );
    pFont1->DrawTextA(NULL,text,-1,&rect, DT_CENTER|DT_NOCLIP, color );
}


void D3D9Menu::Crosshair(LPDIRECT3DDEVICE9 pDevice, D3DCOLOR Color)
{
int size = 20, strong = 1;

int iCenterX = GetSystemMetrics( 0 ) / 2;
int iCenterY = GetSystemMetrics( 1 ) / 2;

if( iCenterX < 20 && iCenterY < 20 )
{
iCenterX = ( GetSystemMetrics( 0 ) / 2 );
iCenterY = ( GetSystemMetrics( 1 ) / 2 );
}

D3DRECT rec_a = { iCenterX - size, iCenterY, iCenterX + size, iCenterY + strong};
D3DRECT rec_b = { iCenterX, iCenterY - size, iCenterX + strong,iCenterY + size};
pDevice->Clear(1, &rec_a, D3DCLEAR_TARGET, Color, 0,  0);
pDevice->Clear(1, &rec_b, D3DCLEAR_TARGET, Color, 0,  0);
}

void D3D9Menu::MenuShow(float x, float y, LPDIRECT3DDEVICE9 pDevice)
{
  int i, val;
  DWORD color;
  char text[100];
  if (!Mvisible) return;
  for (i=0; i<Mmax; i++) {
  val=(MENU[i]->var)?(*MENU[i]->var):0;
  sprintf(text, "%s", MENU[i]->txt);
  if (i==Mpos){
           color=MCOLOR_CURRENT;
  //CMenuItem_DrawCronersBox((INT)x - 0,(INT)y - 4,17,152, pDevice);
  //sprintf(text, "~>%s", MENU[i]->txt);
  }
       else if (MENU[i]->typ==MENUFOLDER)
           color=MCOLOR_FOLDER;
       else if (MENU[i]->typ==MENUTEXT)
           color=MCOLOR_TEXT;
       else
  color=(val)?MCOLOR_ACTIVE:MCOLOR_INACTIVE;

  if (MENU[i]->opt) 
  {
  if (MENU[i]->typ==MENUFOLDER){
DrawTextL(x+3, y, color,text);
y = y + 2;
  }else{
DrawTextL(x+3, y, color,text);
  }
  }

       if (MENU[i]->opt) {
  if (MENU[i]->typ==MENUTEXT)
  DrawTextR((x+Mxofs), y, color,(char *)MENU[i]->opt);
  else
  DrawTextR((x+Mxofs), y, color,(char *)MENU[i]->opt[val]);
  }

       y+=Mysize;
  }
}

void D3D9Menu::MenuNav(void)
{
bool bBothPressed = GetAsyncKeyState(VK_CONTROL) & GetAsyncKeyState(VK_NUMPAD0)&0x8000;

if (GetAsyncKeyState(VK_INSERT)&1)Mvisible=(!Mvisible);

  if (!Mvisible) return;

  if (GetAsyncKeyState(VK_UP)&1) {
do {
Sound.wav.playsoundmem((LPCSTR)MOVE);
Mpos--;
if (Mpos<0)  Mpos=Mmax-1;
} while (MENU[Mpos]->typ==MENUTEXT);
  } else if (GetAsyncKeyState(VK_DOWN)&1) {
do {
Sound.wav.playsoundmem((LPCSTR)MOVE);
Mpos++;
   if (Mpos==Mmax) Mpos=0;
} while (MENU[Mpos]->typ==MENUTEXT);
  } else if (MENU[Mpos]->var) {
int dir=0;

if ( ( GetAsyncKeyState(VK_LEFT )&1 ) && *MENU[Mpos]->var > 0 ) dir=-1, Sound.wav.playsoundmem((LPCSTR)SWITCH);
if ( ( GetAsyncKeyState(VK_RIGHT)&1 ) && *MENU[Mpos]->var < (MENU[Mpos]->maxvalue-1)) dir=1, Sound.wav.playsoundmem((LPCSTR)SWITCH);
if (dir) {
*MENU[Mpos]->var += dir;
if (MENU[Mpos]->typ==MENUFOLDER) Mmax=0;
if (MENU[Mpos]->typ==MENUCAT) Mmax=0;  
}
  }
}

========================================================================
     BASE CHEAT LOSAGA / AOB PERMANENT LOSTSAGA SELAMA2 WORK 100%
========================================================================
                                                  DOWNLOAD CHEAT
                                               KLICK
  KALO GAK JELAS AOB NYA COMMENT







- Copyright © |DodolCheat2| - Hatsune Miku - Powered by Blogger - Designed by Johanes Djogan -