HelpTriggerBot shooting everyone

Posts 1–5 of 5 · Page 1 of 1
TriggerBot shooting everyone
Hello guys so i made a trigger bot but the problem is that he shoot everyone , friendly or enemy i dont know where the problem is tried a couple of change and the result was , either he shoot everyone or he dosent shoot at all if some one could fix the error on my code i will be thank full


Code:
	if (MyCross > 0 && MyCross < 11 ) /*i chosed to loop for only 10 player
		     {
			ReadProcessMemory(csProcess, (LPCVOID)(ProgAdr + Entitylist + Numplayer -1 * Distance), &Thereinfo, sizeof(DWORD), 0);
			ReadProcessMemory(csProcess, (LPCVOID)(Thereinfo + Tnumber), &Thereteam, sizeof(DWORD), 0);
				
			}			
		
		                    if ((Thereteam != MyTeam) && (Thereteam > 0)) 
                                        {
				          WriteProcessMemory(csProcess, (LPVOID)(ProgAdr + InShoot), &Shoot, sizeof(DWORD), 0);
				          Sleep(25);
				          WriteProcessMemory(csProcess, (LPVOID)(ProgAdr + InShoot), &Nshoot, sizeof(DWORD), 0);
			                }
		
	               }
Why this
Code:
 && (Thereteam > 0)
Try removing that and see if that works.
Code:
ProgAdr + Entitylist + Numplayer -1 * Distance
will result in

Code:
ProgAdr + Entitylist + Numplayer - ( 1 * Distance )
due to operator precendence.

Use

Code:
ProgAdr + Entitylist + ( Numplayer -1 ) * Distance
instead.

Also how do you get Numplayer?

Code:
if (MyCross > 0 && MyCross < 11 ) /*i chosed to loop for only 10 player
A triggerbot doesn't need a loop.
Code:
if (MyCross > 0 && MyCross < 11 ) /*i chosed to loop for only 10 player
A triggerbot doesn't need a loop.[/QUOTE]

i fixed the problem by by using (MyCross -1) * Distance) instead of (Numplayer -1) * Distance)

i choosed to loop for 10 cause i usualy playe only competitve on MM and there is no more then 10 player



thx for the replay and help guys
/Solved & closed.
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us