[Source]Small NoMenu Example

09/27/2010 17:29 Yazzn™#1
Hi,
hier mal einem kleines NoMenu Beispiel bei dem ihr euch selbst die funktionen nach dem darin vorgegebenen schema hinzufügen

dann kommen wir mal zum code :

Base.cpp
Code:
[COLOR="SeaGreen"]//////////////////////
////Author:YaZZn`/////
////Language:C++//////
//////////////////////[/COLOR]

[COLOR="RoyalBlue"]
#include [COLOR="Red"]<windows.h>[/COLOR]
#include [COLOR="Red"]<stdio.h>[/COLOR]
#include [COLOR="Red"]"addies.h"[/COLOR][/COLOR]



DWORD dwPlayerPtr = *(DWORD*)PTR_PLAYERPOINTER;
DWORD dwServerPtr = *(DWORD*)PTR_PLAYERPOINTER;


[COLOR="RoyalBlue"]int[/COLOR] Superjump = 1;
[COLOR="RoyalBlue"]int[/COLOR] Premium = 1;


[COLOR="RoyalBlue"]void[/COLOR] PlayerHacks()
{
[COLOR="RoyalBlue"]if[/COLOR](dwPlayerPtr != 0)
{
[COLOR="SeaGreen"]//here a little example for a player hack:[/COLOR]
[COLOR="RoyalBlue"]if[/COLOR](Superjump == 1)
{
[COLOR="RoyalBlue"]if[/COLOR](GetAsyncKeyState(VK_CONTROL)&1)
{
*([COLOR="RoyalBlue"]float[/COLOR]*)(dwPlayerPtr+OFS_Z) = 1000;
}
}

[COLOR="SeaGreen"]//put here the player hacks like the example//[/COLOR]

}
}

[COLOR="RoyalBlue"]void[/COLOR] ServerHacks()
{
[COLOR="RoyalBlue"]if[/COLOR](dwServerPtr != 0)
{

[COLOR="SeaGreen"]//here a little example for a server hack:[/COLOR]
[COLOR="RoyalBlue"]if[/COLOR](Premium == 1)
{
*([COLOR="RoyalBlue"]long[/COLOR]*)(dwServerPtr+OFS_PREMIUM1) = 3, 10; 
{
*([COLOR="RoyalBlue"]float[/COLOR]*)(dwServerPtr+OFS_PREMIUM2) = 1, 1;
}
}

[COLOR="SeaGreen"]//put here server hacks like the example[/COLOR]

}
}


[COLOR="SeaGreen"]//Hack Thread[/COLOR]
[COLOR="RoyalBlue"]void[/COLOR] HackThread() 
{
[COLOR="RoyalBlue"]for[/COLOR](;;) 
{
PlayerHacks();
ServerHacks();
}
Sleep(150); 
}


BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
	[COLOR="RoyalBlue"]if[/COLOR] (dwReason == DLL_PROCESS_ATTACH)
	{	
			CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)HackThread, NULL, NULL, NULL);

	}
	return TRUE;
}
addies.h (Hier addys einfügen)
Code:
[COLOR="SeaGreen"]//Pointers[/COLOR]
[COLOR="RoyalBlue"]#define[/COLOR] PTR_PLAYERPOINTER 0x00
[COLOR="RoyalBlue"]#define[/COLOR] PTR_SERVERPOINTER 0x00
[COLOR="SeaGreen"]//Offsets[/COLOR]
[COLOR="RoyalBlue"]#define[/COLOR] OFS_Z 0x00
[COLOR="RoyalBlue"]#define[/COLOR] OFS_PREMIUM1 0x00
[COLOR="RoyalBlue"]#define[/COLOR] OFS_PREMIUM2 0x00


Es ist nur ein Beispiel wie man so einen NoMenu coden kann.

LG
Yazzn™
09/27/2010 17:34 Lucky Strike™#2
Jup ganz nice ;)
Wird bestimmt nen paar anfängern helfen ;)
09/27/2010 17:52 bot_for_fun_#3
kommts nicht in tutorial section ?
sonst sehr gut.. ^^
hatte sowas schonmal gemacht ^.^
09/27/2010 18:07 xxfabbelxx#4
Hmm.

Ich kann den Code zwar sinngemäß verstehen, aber Anfänger wohl ehr nicht :D