Hellllloooooooo.
So !
We are going to make a simple anti cheat..
It's SIMPLE so don't be rude.
it's look like doidloko's methode.
First open Warz.sln.
Look for:
Code:
int win::ProcessSuspended()
at the first line of the WinMain.cpp file add this:
Code:
#include <windows.h>
#include <tlhelp32.h>
After this:
Code:
int win::ProcessSuspended()
{
if(!bSuspended)
return FALSE;
MSG msg;
while(PeekMessage(&msg, NULL,0,0,PM_NOREMOVE))
{
if(!GetMessage (&msg, NULL, 0, 0))
return 1;
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return TRUE;
}
PAST THIS
This function is going to check every prosess with the name "ProcName".
Yes we'll check inside the process for the Menu title change.
Code:
void GetProcId(char* ProcName)
{
PROCESSENTRY32 pe32;
HANDLE hSnapshot = NULL;
pe32.dwSize = sizeof( PROCESSENTRY32 );
hSnapshot = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
if( Process32First( hSnapshot, &pe32 ) )
{
do{
if( strcmp( pe32.szExeFile, ProcName ) == 0 )
{
Sleep(5000);
ExitProcess(0);
}
}while( Process32Next( hSnapshot, &pe32 ) );
}
if( hSnapshot != INVALID_HANDLE_VALUE )
CloseHandle( hSnapshot );
ProcId = pe32.th32ProcessID;
}
void ClasseCheckPross()
{
// Check the prosess name for me in this example is cheatengine.
// You can add a lot of name for the inject dll - cheat emulator ect....
GetProcId("cheatengine-x86_64.exe");
}
And finally after:
add
Code:
ClasseCheckPross();
So with this methode and the doidloko's methode together, the cheat can't be started before the game because of his process name, and not during the game because of the name window.
Bye.
Atidote.