❗ Loop Players

Posts 16–17 of 17 · Page 2 of 2
Actually that copied code doesn´t say anything about WHEN u are actually executing this. All this does is looping over the entities ONCE and then it sets them to green. U have to do this on an regularly intervall or execute this when a certain event occurs like shooting or whatever!
Code:
            if (ShotsFire >= 1) { //IF SHOTS >=1 CONTINUE
								for (int h = 0; h < 64; h++){ //LOOP PLAYERS
									int PB = PP.GetBaseEntity(h); //GET PLAYERS BASE
									int life = PP.GetHealth(PB); //GET PLAYERS LIFE
									if (life <= 100 && life >= 85) { //LIFE CHECK THEN DRAW
										vme = 0, vre = 255, aze = 0;

									}
									else if (life < 85 && life >= 0) {
										vme = 0, vre = 255, aze = 0;
									}
								}								
							}
One thing that i notice is that it only change the color when they get damaged by the C4 .-.

Im reading EntityBase like this
return mem.Read<DWORD>(modClient.dwBase + offEntityList + (offEntitySize * PlayerNumber));
and the health like this
int bet = mem.Read<int>(BaseEntity + 0x000000FC);

Something wrong?

------------------------------------------------
FORGET everything... thanks for help everyone got it by myself im so happy now
Posts 16–17 of 17 · Page 2 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us