Hi guys.! welcome to my thread..
now i will be posting here in my thread, a bunch of d3d codes..
have fun compiling.!
intermediate coding
1st: Only Premium Source Code
1.Make a new Project in C++ select: Dll and empty Project!
2.Then you add a .cpp file
3.You copy the Source in it!
4.You put in the new Addys
5.Debug your Hack
Code:
#include <windows.h>
#include <iostream>
#include <stdio.h>
#include <tchar.h>
#include <string>
#include <sstream>
#include <urlmon.h>
#include <fstream>
#include <stdlib.h>
/*
Made by KingClem™
©2009
GIVE CREDITS
*/
//Addys//
#define Serverpointer 0xAddy //Replace Addy with the Serpointer! Dont delete the 0x!
#define PremOff 0xAddy //Replace Addy with the Premium Offset! Dont delete the 0x!
using namespace std;
void Premium()
{
DWORD dwSrvrPtr = *(DWORD*)Serverpointer;
if(dwSrvrPtr != 0)
{
*(int*)(dwSrvrPtr+PremOff) = 3; //1= Bronze 2= Silver 3= Gold
}
}
//Hack Thread
void TheHacks()
{
for(;;)
{
Premium();
//Here always add Hacks if you want they are startet!
Sleep(12);
}
}
using namespace std;
//DLL Main
BOOL WINAPI DllMain(HINSTANCE mod, DWORD DWORD_GRUND, LPVOID res)
{
switch(DWORD_GRUND)
{
case 1:
//Here you can Add MsgBoxes or URL open...
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)TheHacks , 0, 0, 0);
break;
case 2:
break;
}
return TRUE;
}
__________________________________________________ ____________
2nd:Player Finder
Just add this to your hack
Code:
long playerfinderbaseoffset = 0x0002C7B4;
long serverpointer = 0x00CD4930;
int IO_playerfinder = 0;
if (IO_playerfinder > 32)
IO_playerfinder = 0;
else if (IO_playerfinder < 0)
IO_playerfinder = 32;
if (IO_playerfinder == 0)
{
sprintf(playerfinderstring, "%s", " PLAYERFINDER OFF ");
}
else
{
DWORD dwSERV = *(DWORD*)serverpointer;
if (dwSERV != 0)
{
memcpy(&playerstring, (void*)((playerfinderbaseoffset + serverpointer) + (0x1A40 * (IO_playerfinder - 1))), 100);
if (playerstring[0] == NULL)
sprintf(playerfinderstring, " PLAYER UNDEFINED_%d", (IO_playerfinder - 1));
else
sprintf(playerfinderstring, " PLAYER %s ", playerstring);
}
else
{
sprintf(playerfinderstring, "%s", " PLAYERFINDER OFF ");
}
}
__________________________________________________ _____________
3rd: WireFrame
Code:
if (m_Stride == 44)
m_pD3Ddev->SetRenderState(D3DRS_FILLMODE, D3DFILL_WIREFRAME);
}
__________________________________________________ _____________
4th: No Fog
Code:
if (nofog)
{
m_pD3Ddev->SetRenderState(D3DRS_FOGENABLE, false);
}
__________________________________________________ _____________
5th: Glass Walls
Code:
if(m_Stride == 40)
{
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
}
__________________________________________________ _____________
6th: Full Bright
Code:
if (fullbright)
{
m_pD3Ddev->SetRenderState(D3DRS_LIGHTING, false);
m_pD3Ddev->SetRenderState(D3DRS_AMBIENT,D3DCOLOR_ARGB(255, 255,255,255));
}
else
{
m_pD3Ddev->SetRenderState(D3DRS_AMBIENT, false);
}
__________________________________________________ _____________
That's enough for now
you don't need to buy ViP if you can make your own.. hehe
if you don't know how to compile
maybe you need to finish watching this all
[Only registered and activated users can see links. ]
just see all of his videos as you tackle the world of C++
Thanks to
watdaef
King7
HAPPY HACKING