ExclamationLoop Players

Posts 1–15 of 17 · Page 1 of 2
Loop Players
Yep is setting to the color, but not all the time, like when it runs and then no more, how i can loop all the players all the time??

Just loop's one time :/

Code:
for (int h = 0; h < 64; h++){
			int PB = PP.GetBaseEntity(h);
			int lif = PP.Getheal(PB);

			if (lif <= 100 && lif >= 85) {
				vme = 0;
				vre = 255;
				aze = 0;

			}
			else if (lif < 85 && lif >= 50) {
				vme = 255;
				vre = 255;
				aze = 0;
			}
		}
Code:
while(true){
     //your code
}
Use your brain?

Also, you variable names are horrible.
Quote Originally Posted by MarkHC View Post
Code:
while(true){
     //your code
}
Use your brain?

Also, you variable names are horrible.
I used While buut... it dont continues the code, it stops there and stays only looping this part of the code and dont continue .-.
And btw my variable like... vme = VerMelho Enemy (Vermelho = Red) cuz i get more one vmt = VerMelho Team
U have to wrap your whole process into an infinte while Loop and then do your stuff there until the condition for the while is being not given anymore. So if your start your main u can do something like:

Code:
while (IsRunning) {

// Your code for looping over the Player BaseEntities


// When Key END is pressed, terminate while loop
	if (GetAsyncKeyState(VK_END)) {
			IsRunning = false;
		}

}
PS: Your variable names are horrible
You're probably only calling it once, which is why it is running once.
Put it into a loop.
Code:
bool bIsRunning = true;
DWORD WINAPI XRay(LPVOID lpParameter){
    while (bIsRunning){
        // Do XRay
        Sleep(1);
    }
    ExitThread(1);
}
Quote Originally Posted by Chris View Post
You're probably only calling it once, which is why it is running once.
Put it into a loop.
Code:
bool bIsRunning = true;
DWORD WINAPI XRay(LPVOID lpParameter){
    while (bIsRunning){
        // Do XRay
        Sleep(1);
    }
    ExitThread(1);
}
Tried everything on this thread, loops 1 time and stays there, like, it loops, set all players to green (r g b) and if i hit any one it don't update the color
Quote Originally Posted by PhY'z View Post
Tried everything on this thread, loops 1 time and stays there, like, it loops, set all players to green (r g b) and if i hit any one it don't update the color
What does your full code look like?
darkwrath505: Dude, may i contact u via Skype ?
Quote Originally Posted by Morgrim View Post
darkwrath505: Dude, may i contact u via Skype ?
PM your Skype name.
Can´t not enoug posts/privileges i guess. Give me yours
Quote Originally Posted by Morgrim View Post
Can´t not enoug posts/privileges i guess. Give me yours
Post more then.
we can't help you without seeing your code
I got my Glow ESP but that function is called before it like this: xRay(); GlowEsp();

that function Xray it only change the color of the Glow Esp, dont even touch the draw.
VME = R (red) VRE (green) AZE (blue)

so it be like this without calling it:
Xray:
Code:
for(int i = 0; i < 64; i++){
                DWORD PB = PP.GetBaseEntity(i);  PB = (PLAYERBASE = PLAYER.GetBaseEntity(i)) = mem.Read<DWORD>(modClient.dwBase + offEntityList + (offEntitySize * i)); //THIS RETURNS BASE ENTITY TO PB
		int life = PP.Getheal(PB); LIFE = PLAYER LIFE IN THE LOOP = Player.GetHealth(PB) = bet = mem.Read<int>(BaseEntity + 0x000000FC); //BASE ENTITY = PB + PLAYERHEALTHOFFSET
		if (life <= 100 && life >= 85) { //CHECKS IF OK CHANGE
			vme = 0; //RED
			vre = 255; //GREEN
			aze = 0; //BLUE
		}
		else if (life < 85 && life >= 50) { //CHECKS IF OK CHANGE
			vme = 255; //RED
			vre = 255; //GREEN
			aze = 0; //BLUE
		}
	}
}
But it just loops 1 time, so everyone in the other team is green (the E on the final VM VR and AZ, mean ENEMY color), but when i hit them dont update the color again
Haven't checked if your code works but here's some code that might work
Code:
void ESPfunction()
{
while (bEspEnabled) // if you want to stop it with a key do while (!GetAsyncKeyState(VK_END)) etc.
	{
		for(int i = 0; i < 64; i++)
		{
				DWORD PB = PP.GetBaseEntity(i);....
				int life = PP.Getheal(PB); ...
				if (life <= 100 && life >= 85) { //CHECKS IF OK CHANGE
					vme = 0; //RED
					vre = 255; //GREEN
					aze = 0; //BLUE
				}
				else if (life < 85 && life >= 50) { //CHECKS IF OK CHANGE
					vme = 255; //RED
					vre = 255; //GREEN
					aze = 0; //BLUE
				}
		}
		Sleep(1); //to reduce CPU usage of course 
	}
}

You can merge those 2 functions into one, after selecting the colors just do the WPM and you're done;
Code:
DWORD mObj = pointerGlow + i * sizeof(GlowObjectDefinition_t);
			GlowObjectDefinition_t glowObj = mem.Read<GlowObjectDefinition_t>(mObj);
			if (glowObj.pEntity != NULL) {
				bool dormant = mem.Read<int>(glowObj.pEntity + 0xE9);
				if (!dormant) {
					for (int j = 0; j < 64; j++)
					{
							DWORD PB = PP.GetBaseEntity(i);
							int life = PP.Getheal(PB);
							if (life <= 100 && life >= 85) { //CHECKS IF OK CHANGE
								vme = 0; //RED
								vre = 255; //GREEN
								aze = 0; //BLUE
							}
							else if (life < 85 && life >= 50) { //CHECKS IF OK CHANGE
								vme = 255; //RED
								vre = 255; //GREEN
								aze = 0; //BLUE
							}
					}
					int team = mem.Read<int>(glowObj.pEntity + 0xF0);
					if (team != me.team) {
						DrawGlow(mObj, a, b, c, m);
					}
					else {
						DrawGlow(mObj, d, e, f, m);
					}
				}
			}
It sets the enemy to green... but when i go and hit then to "change" the color, it stays green
Posts 1–15 of 17 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us