Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 32
  1. #16
    Jumboperson's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    56
    Reputation
    10
    Thanks
    53
    hey what are the dependencies for this file? like what to #include, sorry I'm new to D3D.

  2. #17
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Ontario, Canada
    Posts
    15,689
    Reputation
    3319
    Thanks
    11,100
    My Mood
    Happy
    Quote Originally Posted by Jumboperson View Post
    hey what are the dependencies for this file? like what to #include, sorry I'm new to D3D.
    Code:
    #pragma comment(lib, "d3dx9.lib")
    #pragma comment(lib, "d3d9.lib")
    
    #include <d3d9.h>
    #include <d3dx9.h>


    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.
     
     
    VM | PM

    Publicist Since 04.04.2015
    Middleman Since Unknown - Unknown
    Global Moderator Since 08.01.2013
    Donator Since 05.29.2013

    Minion+ Since 04.18.2013

    District 187 Minion Since 04.04.2013
    Steam Minion Since 02.26.2013
    WarRock Minion Since 02.19.2013
    A.V.A Minion Since 02.13.2013
    DayZ Minion Since 01.21.2013
    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  3. #18
    Jumboperson's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    56
    Reputation
    10
    Thanks
    53
    Quote Originally Posted by Flengo View Post


    Code:
    #pragma comment(lib, "d3dx9.lib")
    #pragma comment(lib, "d3d9.lib")
    
    #include <d3d9.h>
    #include <d3dx9.h>
    Thanks! This was quite helpful!

  4. #19
    TrollSide's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    5
    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);
    }

  5. #20
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Ontario, Canada
    Posts
    15,689
    Reputation
    3319
    Thanks
    11,100
    My Mood
    Happy
    Quote Originally Posted by TrollSide View Post
    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);
    }
    EspBar is your variable which is checked to see if the hack is turned on.

    If it is, you are drawing the bar with the health information from the CharacterFX Class.

    So yes, you are doing it right


    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.
     
     
    VM | PM

    Publicist Since 04.04.2015
    Middleman Since Unknown - Unknown
    Global Moderator Since 08.01.2013
    Donator Since 05.29.2013

    Minion+ Since 04.18.2013

    District 187 Minion Since 04.04.2013
    Steam Minion Since 02.26.2013
    WarRock Minion Since 02.19.2013
    A.V.A Minion Since 02.13.2013
    DayZ Minion Since 01.21.2013
    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  6. #21
    arun823's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Los Angeles, California
    Posts
    524
    Reputation
    151
    Thanks
    1,887
    My Mood
    Amused
    Quote Originally Posted by TrollSide View Post
    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);
    }
    Quote Originally Posted by Flengo View Post


    EspBar is your variable which is checked to see if the hack is turned on.

    If it is, you are drawing the bar with the health information from the CharacterFX Class.

    So yes, you are doing it right
    On another note, the CharacterFX class and struct changed two patches ago (9/19/12) so the ESP health won't work now unless you updated it. Just a heads up

  7. #22
    fatan's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    1
    Does this work??????????????

  8. #23
    arun823's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Los Angeles, California
    Posts
    524
    Reputation
    151
    Thanks
    1,887
    My Mood
    Amused
    Quote Originally Posted by fatan View Post
    Does this work??????????????
    You need to update the class for this to work.

  9. #24
    ChaosMagician's Avatar
    Join Date
    Dec 2010
    Gender
    male
    Posts
    1,669
    Reputation
    20
    Thanks
    1,313
    My Mood
    Dead
    @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...




    ~NOOBISSES ÉPICAS DO PESSOAL~


  10. #25
    Departure's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    818
    Reputation
    125
    Thanks
    1,785
    My Mood
    Doh
    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.
    Last edited by Departure; 09-28-2012 at 03:23 AM.
    DJector.Lite
    Get the advantages of new injection technology, with 1 click easy to use injector, work for all platforms x86/x64

    Download

    D-Jector
    Get the most advanced and full featured injector around, works for any game and any platform x86/x64, nothing comes even close.
    Download

  11. The Following User Says Thank You to Departure For This Useful Post:

    luizimloko (09-28-2012)

  12. #26
    garciapika's Avatar
    Join Date
    Jul 2012
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    1
    My Mood
    Inspired
    Testando no br ...... Bom trabalho @luizimloko

  13. #27
    Lukkar's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    27
    Reputation
    10
    Thanks
    0
    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?

  14. #28
    SureShotRobit's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    40
    Reputation
    10
    Thanks
    2
    Good job! I like the menu!

  15. #29
    CrapzHax's Avatar
    Join Date
    Sep 2012
    Gender
    male
    Posts
    18
    Reputation
    10
    Thanks
    0
    My Mood
    Paranoid
    I will be using this when I start making hacks.

  16. #30
    KoZaK_'s Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    Good job and menu very good!

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. How to Change the Start-Bar in Windows XP
    By Jackal in forum General
    Replies: 31
    Last Post: 05-31-2015, 09:29 PM
  2. [Release] ESPHealth Bars/String
    By luizimloko in forum Combat Arms BR Hack Coding/Source Code
    Replies: 21
    Last Post: 09-10-2012, 06:16 PM
  3. User bars
    By mostwanted in forum Spammers Corner
    Replies: 4
    Last Post: 08-21-2009, 06:28 PM
  4. User bar
    By jadedfrog in forum Help & Requests
    Replies: 1
    Last Post: 02-21-2006, 11:16 AM
  5. MPGH's User Bar
    By mostwanted in forum General
    Replies: 17
    Last Post: 02-20-2006, 01:34 AM