(adsbygoogle = window.adsbygoogle || []).push({});
Hey
guys ,
Well im pretty excited cause i didnt make anything for pc but i tried and used a pretty standart and easy way to make an external
bHop and Trigger. But I dont know, it finds the process but nothing works, no bHop and no Trigger. I'm pretty sure its bcause i have bullshit offsets but
i searched and no of them worked. Maybe, I like, messed up the hook? so it reads and writes bullshit haha.
Yeah im new to PC coding, and hope someone can help me fix this
My code here
main.cpp:
#include <Windows.h>
#include <iostream>
#include "HackProcess.h"
#include "defines.h"
#include "structInfo.h"
using namespace std;
CHackProcess mem;
struct myPlayer_t {
DWORD cLocalPlayer;
int flag;
int teamNum;
int chID;
void ReadInformation() {
ReadProcessMemory(mem.__HandleProcess, (PBYTE*)(mem.__dwordClient + playerBase), &cLocalPlayer, sizeof(DWORD), NULL);
ReadProcessMemory(mem.__HandleProcess, (PBYTE*)(cLocalPlayer + flagOff), &flag, sizeof(int), NULL);
ReadProcessMemory(mem.__HandleProcess, (PBYTE*)(cLocalPlayer + teamOff), &teamNum, sizeof(int), NULL);
ReadProcessMemory(mem.__HandleProcess, (PBYTE*)(cLocalPlayer + chIDOff), &chID, sizeof(int), NULL);
}
}myPlayer;
struct entityList_t {
DWORD cEntityBase;
int teamNum;
void ReadInformation(int Player) {
ReadProcessMemory(mem.__HandleProcess, (PBYTE*)(mem.__dwordClient + entityBase + (Player * entityLoopDistance)), &cEntityBase, sizeof(DWORD), NULL);
ReadProcessMemory(mem.__HandleProcess, (PBYTE*)(cEntityBase + teamOff), &teamNum, sizeof(int), NULL);
}
}entityList[32];
void bHop(void) {
if (GetAsyncKeyState(spaceKey)) {
if (myPlayer.flag == 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.chID == 0)
return;
if (myPlayer.chID > numOfPlayers)
return;
if (entityList[myPlayer.chID - 1].teamNum == myPlayer.teamNum)
return;
if (myPlayer.chID > 0 && myPlayer.chID < numOfPlayers) {
Sleep(30);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
Sleep(30);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
}
}
int main() {
mem.RunProcess();
cout << "[SIMPLE TRIGGER] csgo.exe found..." << endl;
while (!GetAsyncKeyState(f6Key)) {
myPlayer.ReadInformation();
for (int i = 0; i < numOfPlayers; i++) {
entityList
.ReadInformation(i);
}
bHop();
triggerBot();
Sleep(1);
}
}
structinfos:
DWORD playerBase = 0xBB47505;
DWORD flagOff = 0x100;
DWORD entityBase = 0xBBB560D;
DWORD entityLoopDistance = 0x10;
DWORD teamOff = 0xF0;
DWORD chIDOff = 0x2410;
int numOfPlayers = 32;
keyboard defines:
#define f6Key 0x75
#define spaceKey 0x20
And I'm using the HackProcess header to make life easier.