Solved Trigger Little problem ?

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

kartal0746

Newbie
Full Member
Sep 15, 2013
14
389
1
HTML:
void TriggerBot()
{
	if(!b_ShotNow)
	{
		WriteProcessMemory(fProcess.__HandleProcess, (int*)(fProcess.__dwordClient + dw_Attack), &i_DontShoot, sizeof(int), NULL);
		b_ShotNow = !b_ShotNow;
	}

	if(MyPlayer.CrosshairEntityID == 0)
		return;
	
	if (PlayerList[MyPlayer.CrosshairEntityID-2].Team == MyPlayer.Team) 
		return;

	if(MyPlayer.CrosshairEntityID > NumOfPlayers)
		return;

	if(b_ShotNow)
	{
		WriteProcessMemory(fProcess.__HandleProcess, (int*)(fProcess.__dwordClient + dw_Attack), &i_Shoot, sizeof(int), NULL);
		b_ShotNow = !b_ShotNow;
	}
}
Sometimes break the this code if (PlayerList[MyPlayer.CrosshairEntityID-2].Team == MyPlayer.Team).What should ı do ?(CrosshairEntityID-2 because -1 fire the my team and some enemy)
 

simonpaa

Jr.Coder
Silenced
Oct 2, 2013
55
708
0
Before you make such a question, search about it on the site and other websites.
There should be many answers to this already.

:rolleyes:
 
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