Solved triggerbot Online cs:go

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

rlzgh

Newbie
Full Member
Dec 16, 2014
12
92
0
Me again,

the triggerbot is working pretty nicely.. but only vs. bots.

i read somewhere that its possible that the numberofplayers offset is different in online matches. anyway around it?
 

dex73r

Newbie
Full Member
Jul 6, 2013
31
242
1
delete this
C++:
  ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordServer + dwPlayerCount), &numOfPlayers, sizeof(int), NULL)
C++:
if (PlayerList[MyPlayer.CrosshairEntityID - 1].Team == MyPlayer.iTeam)
	return;

if (MyPlayer.CrosshairEntityID > 0 && MyPlayer.CrosshairEntityID <32)
{
	//mousevents
}
try it like that, it does work for me
 

dex73r

Newbie
Full Member
Jul 6, 2013
31
242
1
Me again,

the triggerbot is working pretty nicely.. but only vs. bots.

i read somewhere that its possible that the numberofplayers offset is different in online matches. anyway around it?


tell me your code, i will try to help you a bit
 

rlzgh

Newbie
Full Member
Dec 16, 2014
12
92
0
C++:
#include <Windows.h>
#include <iostream>
#include "HackProcess.h"
#include "structs_offsets.h"
#include "defines.h"

using namespace std;

CHackProcess fProcess;

struct myPlayer_t
{
	DWORD cLocalPlayer;
	int m_fFlags;
	int iTeam;
	int iCrosshairEntityID;

	void ReadInformation()
	{
		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dwlocalBaseEntity), &cLocalPlayer, sizeof(DWORD), NULL);
		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(cLocalPlayer + dwFlags), &m_fFlags, sizeof(int), NULL);
		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(cLocalPlayer + dwTeam), &iTeam, sizeof(int), NULL);
		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(cLocalPlayer + dwCrosshairID), &iCrosshairEntityID, sizeof(int), NULL);

		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordServer + dwPlayerCount), &numOfPlayers, sizeof(int), NULL);
	}
}myPlayer;

struct playerList_t
{
	DWORD cBaseEntity;
	int iTeam;

	void ReadInformation(int Player)
	{
		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(fProcess.__dwordClient + dwEntityBaseList + (Player * dwEntitySize)), &cBaseEntity, sizeof(DWORD), NULL);
		ReadProcessMemory(fProcess.__HandleProcess, (PBYTE*)(cBaseEntity + dwTeam), &iTeam, sizeof(int), NULL);
	}
}playerList[32];

void bunnyHop()
{
	if (GetAsyncKeyState(spaceKey)) 
	{ 
		if (myPlayer.m_fFlags == 257) 

		{
			keybd_event(MapVirtualKey(spaceKey, 0), 0x39, KEYEVENTF_EXTENDEDKEY, NULL);
			Sleep(3); 
			keybd_event(MapVirtualKey(spaceKey, 0), 0x39, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, NULL);
		}
	}
}

void triggerBot(void)
{
	if (myPlayer.iCrosshairEntityID == 0)
		return;

	if (playerList[myPlayer.iCrosshairEntityID - 1].iTeam == myPlayer.iTeam)
		return;

	if (myPlayer.iCrosshairEntityID > numOfPlayers)
		return;

	Sleep(70);
	mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); 
	Sleep(70); 
	mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); 
}


int main()
{
	fProcess.RunProcess();

	SetConsoleTitle("blabla");
	cout << endl;
	cout << "gameProc found!" << endl << endl;
	cout << "bHop & triggerBot running~" << endl;

	while (!GetAsyncKeyState(f6Key))
	{
		myPlayer.ReadInformation();
		
		for (int i = 0; i < numOfPlayers; i++)
		{
			playerList[i].ReadInformation(i);
		}

		triggerBot();
		bunnyHop();
		Sleep(1);
	}
}
i didnt change that much of the original.. just got rid of WPM. as said, it works perfect vs. bots but not online.

thanks for your effort
 

rlzgh

Newbie
Full Member
Dec 16, 2014
12
92
0
thx man it works now. so i didnt really need to read the actual player count. just checking if crosshair id > 0 and < numOfPlayers.
 

dex73r

Newbie
Full Member
Jul 6, 2013
31
242
1
thx man it works now. so i didnt really need to read the actual player count. just checking if crosshair id > 0 and < numOfPlayers.
when ever you try to code, just try to read what did you write, it might give you a hint :p

// this triggerbot and bhop wont let you play for more tha 2 weeks cause its detected.
 

rlzgh

Newbie
Full Member
Dec 16, 2014
12
92
0
thx for ur advice :) i wont use it at all. i always thought its detected after this long time :D but i wanted it to be working ;)
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods