Moin,
I wrote a small system out of boredom which helps to block multiboxxing,
you can define in the clientcode how many clients can be open at the same time.
The whole thing works with windows mutexes and is completely "clientside" i.e. it's not an "ultimate" solution, but should stop every shit botter and similar.
Do note:
The code is not perfect.
just paste the code into UserInterface.cpp:
bool genMutex(int id)
{
std::string mutex_name = "MultiBoxBlock";
mutex_name.push_back(id);
HANDLE Mutex = OpenMutexA(MUTEX_ALL_ACCESS, 1, mutex_name.c_str());
if (!Mutex || WaitForSingleObject(Mutex,500) == WAIT_ABANDONED)
{
CreateMutexA(0, 1, mutex_name.c_str());
Sleep(INFINITY);//locks mutex
return true;
}
return false;
}
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
bool ret = false;
for (int i = 0;i<3;i++)
{
ret = genMutex(i);
if (ret)
break;
}
if (!ret)
{
MessageBoxA(NULL, "MultiBox detected", "", MB_OK);
ExitProcess(0);
}
You can define the number of allowed clients in the "for loop".
in my case 3.
Video:
[Hidden Content]
Enjoy.