-You paste it in your project in a new folder: "sdk.h" then you include it into your main cpp file "
-This is made for c++.
-Make sure you open c++,if you use 2010 versions you will have to update it to 2010.
Code:
#include <d3d9.h>
#include <d3dx9.h>
#include <stdio.h>
#pragma warning(disable:4244)
/*
* Software development kit coded by Aeroman.
* Licensed to Microsoft©
* Coded on 12th of june 2011
* SuperDevelopMent Kit v3.19
*/
typedef unsigned int interger_func;
struct SDK
{
DWORD QuickStart(void *Function);
DWORD Func1(DWORD adress,int state);
DWORD Func2(DWORD adress,int state);
DWORD Func3(DWORD adress,int state);
DWORD Func4(DWORD adress,int state);
DWORD Memcpy(DWORD adress,PBYTE *bytes,int max_bytes);
void Crosshair(IDirect3DDevice9 *pDevice,DWORD Collor,DWORD Size);
void URL(char *url);
void Messagebox(char *title,char *body);
void URL_Messagebox(char *title,char *body,char *url);
void Exit(int after_seconds);
void sleep(int seconds);
void OpenSlot(DWORD PlayerPtr,DWORD Slot);
void StartSDK(void *thread,int after_seconds);
void Game_Teleport(DWORD GamePointer,DWORD adress_x,DWORD adress_y,DWORD adress_z,int hotkey_save,int hotkey_go);
void Game_Speed(DWORD speed_adress,int speed);
void Game_Weapon(DWORD GamePointer,DWORD Weapon1,int index);
void Game_Esp(char Teamname,DWORD adress);
void Game_Rain(DWORD adress,int index);
void SDK_Credits();
}; SDK *Aero;
DWORD SDK::QuickStart(void *Function)
{
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Function, NULL, NULL, NULL);
return TRUE;
}
DWORD SDK::Func1(DWORD adress,int state)
{
*(float*)(adress) = state;
return 1;
}
DWORD SDK::Func2(DWORD adress,int state)
{
*(int*)(adress) = state;
return 1;
}
DWORD SDK::Func3(DWORD adress,int state)
{
*(long*)(adress) = state;
return 1;
}
DWORD SDK::Func4(DWORD adress,int state)
{
*(double*)(adress) = state;
return 1;
}
DWORD SDK::Memcpy(DWORD adress,PBYTE *bytes,int max_bytes)
{
#define MemCommit memcpy
MemCommit((void *)(adress),(bytes),max_bytes);
return 1;
}
void SDK::Crosshair(IDirect3DDevice9 *pDevice,DWORD Collor,DWORD Size)
{
#define Rectcol D3DCOLOR_ARGB(100,125,0,255)
int x = ( GetSystemMetrics( 0 ) / 2);
int y = ( GetSystemMetrics( 1 ) / 2);
D3DRECT rec1 = { x - Size, y, x + Size, y + 1 };
D3DRECT rec2 = { x, y - Size, x + 1 , y + Size-1 };
D3DRECT rec3 = { x-1 - Size, y, x + Size, y - 1 };
D3DRECT rec4 = { x, y - Size, x - 1 , y + Size+1 };
pDevice->Clear(1, &rec1, D3DCLEAR_TARGET, Collor , 0, 0);
pDevice->Clear(1, &rec2, D3DCLEAR_TARGET, Collor , 0, 0);
pDevice->Clear(1, &rec3, D3DCLEAR_TARGET, Rectcol, 0, 0);
pDevice->Clear(1, &rec4, D3DCLEAR_TARGET, Rectcol, 0, 0);
}
void SDK::URL(char *url)
{
ShellExecuteA(0,0,url,0,0,SW_SHOWNORMAL);
}
void SDK::Messagebox(char *title,char *body)
{
MessageBoxA(0,body,title,0);
}
void SDK::URL_Messagebox(char *title,char *body,char *url)
{
SDK::Messagebox(title,body);
SDK::URL(url);
}
void SDK::Exit(int after_seconds)
{
INT inSec;
inSec = after_seconds * 1000;
ExitProcess(inSec);
}
void SDK::sleep(int seconds)
{
INT inSec;
inSec = seconds * 1000;
Sleep(inSec);
}
void SDK::OpenSlot(DWORD PlayerPtr, DWORD Slot)
{
*(long*)(PlayerPtr+Slot) = 1;
}
void SDK::StartSDK(void *thread,int after_seconds)
{
INT inSec;
inSec = after_seconds * 1000;
SDK::Messagebox("Sdk","Succesfully started the function!");
SDK::QuickStart(thread);
SDK::sleep(inSec);
}
void SDK::Game_Teleport(DWORD GamePointer,DWORD adress_x, DWORD adress_y, DWORD adress_z, int hotkey_save, int hotkey_go)
{
DWORD p = *(DWORD*)(GamePointer);
DWORD x = *(DWORD*)(adress_x);
DWORD z = *(DWORD*)(adress_y);
DWORD y = *(DWORD*)(adress_z);
INT X;
INT Y;
INT Z;
INT cur_z;
INT cur_y;
INT cur_x;
X = *(float*)((p)+(x));
Y = *(float*)((p)+(y));
Z = *(float*)((p)+(z));
if(hotkey_save)
{
cur_z = Z;
cur_y = Y;
cur_x = X;
}
if(hotkey_go)
{
*(float*)((p)+(x)) = (cur_x);
*(float*)((p)+(z)) = (cur_z);
*(float*)((p)+(y)) = (cur_y);
}
}
void SDK::Game_Speed(DWORD speed_adress, int speed)
{
DWORD s = *(DWORD*)(speed_adress);
INT original_value = 98.94f;
INT on = 0;
if(GetAsyncKeyState(VK_DELETE)&1)
{
*(float*)(speed_adress) = (original_value);
}
else
{
*(float*)(speed_adress) = (speed);
}
}
void SDK::Game_Weapon(DWORD GamePointer,DWORD Weapon1,int index)
{
#define GetWeapon long
DWORD p = *(DWORD*)(GamePointer);
DWORD w = *(DWORD*)(Weapon1);
DWORD i = *(DWORD*)(index);
*(GetWeapon*)((p)+(w)) = (i);
}
void SDK::Game_Esp(char Teamname, DWORD adress)
{
DWORD t = *(DWORD*)(Teamname);
DWORD a = *(DWORD*)(adress);
char info[28] = { "No info registered." };
if(!t)
{
sprintf_s(info,"Team information: %s",a);
}
}
void SDK::Game_Rain(DWORD adress,int index)
{
DWORD a = *(DWORD*)(adress);
DWORD i = *(DWORD*)(index);
*(interger_func*)(a) = (i);
}
void SDK::SDK_Credits()
{
SDK::Messagebox("Credits","Aeroman && Microsoft development networks.");
}