hey what are the dependencies for this file? like what to #include, sorry I'm new to D3D.
ESPHealth Bars/String
So , i should do like that ?
if (EspBar == 1)
{
D3D->DrawHealthBars(TRUE, FALSE, ScreenPosition.x - 10, ScreenPosition.y - 35, Health->nHealth, TRUE, Health->bSpawnSheild, pDevice);
}
if (EspBar == 1)
{
D3D->DrawHealthBars(TRUE, FALSE, ScreenPosition.x - 10, ScreenPosition.y - 35, Health->nHealth, TRUE, Health->bSpawnSheild, pDevice);
}
Does this work??????????????
@luizimloko
You would put just 1 variable, so we don't have to activate 1 or disable the other one.
But if you want both it wouldn't be possible by the method i said...
You would put just 1 variable, so we don't have to activate 1 or disable the other one.
But if you want both it wouldn't be possible by the method i said...
Nice work but I see you could improve this, for example it makes no logical sense to have the first 2 parameters, Bars, String.. instead of type integer you could have a boolean, true for bars and false for strings, this will remove 1 parameter and actually make your function smaller, boolean type is 1 byte while an integer is 4 bytes which memory gets allocated for. so from 8 bytes down to 1 byte just by using logic saved you 7 bytes of memory 
P.s
I would also take another look at BOOL bCheckSpawnS, BOOL iSpawnCheck... Is it required to have another 2 parameters here also?
Another small thing is "ScreenPosition.x - 10, ScreenPosition.y - 35" can you not include the pixel offset in the actual function as y - 35 seems constant from your example... and using the boolean type to determine if bar/strings are used can also determine if x needs to - 10 pixels ... ofcause this only based on your example. I have have a few other suggestion to do with your actual code but because I don't Code in C++ I will not give my advice as it possibly could be wrong.

P.s
I would also take another look at BOOL bCheckSpawnS, BOOL iSpawnCheck... Is it required to have another 2 parameters here also?
Another small thing is "ScreenPosition.x - 10, ScreenPosition.y - 35" can you not include the pixel offset in the actual function as y - 35 seems constant from your example... and using the boolean type to determine if bar/strings are used can also determine if x needs to - 10 pixels ... ofcause this only based on your example. I have have a few other suggestion to do with your actual code but because I don't Code in C++ I will not give my advice as it possibly could be wrong.
Testando no br ...... Bom trabalho @luizimloko
im downloading C++ 2012 now and i really wanna learn how to code healthbars for CA, and also maybe chams, but health bars forsure can someone TV me and show me a rough draft on how to do it please?
Good job! I like the menu! 

I will be using this when I start making hacks.
Good job and menu very good!
This thread is closed for replies.


