Unli Ammo

Posts 1–10 of 10 · Page 1 of 1
Unli Ammo
Kuya bakit po pag nag uunli ammo ako pag pinindot ko po yung F8 tapos F5 lumalabas Unexpected error kuya pa help ko thanks.
Iwan ko....Work Namn Sakin.....1
Jhea!! takte kaya mo bang ayusin ung Unli ammo kasi hindi ko na ooff ung unli eh kaay na ddc parati nakaka hilang naman
pwede po ba yung unli ammo sa A.I??
Quote Originally Posted by dasting123 View Post
pwede po ba yung unli ammo sa A.I??
There is no unli ammo in AI, if you've use unli ammo in AI, it will be CRASH.

There is AUTO AMMO, AUTO MEDIC
aah ganun pala hehe, sige salamat
panu ba gumawa ng cheat? example auto refill ganun?? gusto ko lang kasi sa cheat eh auto refill tsaka super jump yun lang eh

---------- Post added at 11:09 PM ---------- Previous post was at 11:08 PM ----------

panu po ba gumawa ng cheat? example auto refill, gusto ko lang kasi sa cheat auto refill tsaka super jump yun lang eh
unlimited ammo on/off

F5 - ON
F6 - OFF

gawa ka ng CPatch.h tapos ung laman eto

Code:
#ifndef _CPATCH_H_
#define _CPATCH_H_
 
#include <windows.h>
 
class CPatch
{
private:
	DWORD	T_ADR;
	BYTE	T_RESTORE_BYTES[6];
	int		g_s_RESTORE_BYTES;
	bool	T_RESTOREPATCH;
	bool	T_ONCE;
	void*	memcpy_s(void* pvAddress, const void* pvBuffer, size_t stLen);
public:
	CPatch(DWORD g_T_ADR, int s_RESTORE_BYTES);
	void PatchOnce(const void *T_SRC, int s_T_SRC);
	void RestorePatch();
};
 
#endif
tapos CPatch.cpp

Code:
#include "CPatch.h"
 
void* CPatch::memcpy_s(void *pvAddress, const void *pvBuffer, size_t stLen)
{
	MEMORY_BASIC_INFORMATION mbi;
	VirtualQuery( ( void* )pvAddress, &mbi, sizeof( mbi ) );
	VirtualProtect( mbi.BaseAddress, mbi.RegionSize, PAGE_EXECUTE_READWRITE, &mbi.Protect );
	void* pvRetn = memcpy( ( void* )pvAddress, ( void* )pvBuffer, stLen );
	VirtualProtect( mbi.BaseAddress, mbi.RegionSize, mbi.Protect, &mbi.Protect );
	FlushInstructionCache( GetCurrentProcess( ), ( void* )pvAddress, stLen );
	return pvRetn;
}
 
CPatch::CPatch(DWORD g_T_ADR, int s_RESTORE_BYTES)
{
	T_RESTOREPATCH = false;
	T_ONCE = false;
	g_s_RESTORE_BYTES = s_RESTORE_BYTES;
	T_ADR = g_T_ADR;
	for( int i = 0; i < 6; i++ )
	{
		T_RESTORE_BYTES[i] = 0x00;
	}
}
 
void CPatch::PatchOnce(const void* T_SRC, int s_T_SRC)
{
	if( !T_ONCE )
	{
		T_ONCE = true;
		T_RESTOREPATCH = true;
		BYTE *g_T_RESTORE_BYTES = (BYTE*)T_ADR;
		for( int i = 0; i < g_s_RESTORE_BYTES; i++ )
		{
			T_RESTORE_BYTES[i] = g_T_RESTORE_BYTES[i];
		}
		memcpy_s((void*)T_ADR, (const void*)T_SRC, s_T_SRC);
	}
}
void CPatch::RestorePatch()
{
	if( T_RESTOREPATCH )
	{
		BYTE *g_T_ADR = (BYTE*)T_ADR;
		for( int i = 0; i < g_s_RESTORE_BYTES; i++ )
		{
			g_T_ADR[i] = T_RESTORE_BYTES[i];
		}
		T_RESTOREPATCH = false;
		T_ONCE = false;
	}
}

then sa project mo include mo sya
Code:
#include <windows.h>
#include "CPatch.h"
eto ung buong code.
Code:
#include <windows.h>
#include "CPatch.h"


CPatch pammo (ADR_Unliammo         , 6);

DWORD *ingame= (DWORD*)ADR_PlayerPointer;
DWORD *outgame= (DWORD*)ADR_ServerPointer;


void ammoon()
{
if(GetAsyncKeyState(VK_F5) &1)
{
MessageBeep(MB_ICONINFORMATION);

pammo.PatchOnce ((void *)"\x00\x00\x00\x00",4);
}
}
void ammooff()
{
if(GetAsyncKeyState(VK_F6) &1)
{
MessageBeep(MB_ICONINFORMATION);

pammo.RestorePatch();
}
}

}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
ammoon();
ammooff();
}
if(*outgame)
{

}
Sleep(200); //prevent for overloading the cpu
}
}

BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL, "Inject", "Done", MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
san ko po ba ilalagay yung code?
wow..look nice
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us