Page 8 of 13 FirstFirst ... 678910 ... LastLast
Results 106 to 120 of 189
  1. #106
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,406
    Reputation
    157
    Thanks
    3,991
    My Mood
    Flirty
    Quote Originally Posted by msflames3 View Post
    ac1d thank you so much it worked! I was able to make xhair! Now onto circle + FPS...



    EDIT: Circle,, FPS and drawbox d/c me... i put the
    D3DXCreateLine(pDevice,&pLine);
    DrawCircle(125,105,15,255,0xffffffff);
    together.. we r suppose to do that right?
    if not, where do we put D3DXCreateLine(pDevice,&pLine); ?

    i put it under the same spot as xhair...

    FPS d/cs me to... actually i get an error for it but codernever fixed it... and i d/c.

    i also d/c for box.... lol.
    What should i do? I mainly want circle. You dont need to hlep me with FPS and box.
    You need to create the line firrst (you do that with your font)
    Then after the line is created, You can draw the circle

  2. #107
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,014
    Reputation
    202
    Thanks
    2,934
    My Mood
    Twisted
    So we put that under pfont? Thats what i dont get.

    What font. There r multiple places that mention font

    Current Works:
    ---Horror Game






    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  3. #108
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,406
    Reputation
    157
    Thanks
    3,991
    My Mood
    Flirty
    Quote Originally Posted by msflames3 View Post
    So we put that under pfont? Thats what i dont get.

    What font. There r multiple places that mention font
    Its a line, Not text. We dont need fonts LOL
    You will see D3DXCreateFont(...)
    Put it with that and then draw the circle with the other part of the xhair..

  4. #109
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,014
    Reputation
    202
    Thanks
    2,934
    My Mood
    Twisted
    Oooo i gettt ittt

    thank yo! Im gonna try that right now. Anf hile im at it. Draw ox i did the same thing. I put lobals and everything under cbase. And i put the last line under menu hotkey and i d/c. I think its my base


    EDIT:I still d/c with the circle... let me get this straight.

    Globals go at the almost very top. After glboals go right under the globals. D3DCreateline or w/e goes right before d3dcreatefont. Then the endscewne thing goes with my xhair in the render place?

    cuz i did that and i d/c..
    Last edited by CAFlames; 07-12-2010 at 01:16 AM.

    Current Works:
    ---Horror Game






    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  5. #110
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,889
    Reputation
    163
    Thanks
    3,289
    My Mood
    Sleepy
    Quote Originally Posted by msflames3 View Post
    Oooo i gettt ittt

    thank yo! Im gonna try that right now. Anf hile im at it. Draw ox i did the same thing. I put lobals and everything under cbase. And i put the last line under menu hotkey and i d/c. I think its my base


    EDIT:I still d/c with the circle... let me get this straight.

    Globals go at the almost very top. After glboals go right under the globals. D3DCreateline or w/e goes right before d3dcreatefont. Then the endscewne thing goes with my xhair in the render place?

    cuz i did that and i d/c..
    D3DX stuff D/Cs now, as in ID3DXLine/Font.
    For the crosshair, instead just do this :
    Code:
    void DrawLine(int x, int y, int x2, int y2, int width, DWORD color, LPDIRECT3DDEVICE9 pDevice)
    {
    	
    	FillRGB(x, y, x2 - x, y2 - y, color, pDevice);
    
    }
    Then all you need to do is get the viewport by doing

    DEVICE->GetViewport(...);

    and then draw the crosshair :
    Code:
    //I used oViewport for my viewport
    DrawLine((oViewport.Width / 2) - 10, (oViewport.Height / 2), (oViewport.Width / 2) + 10, (oViewport.Height / 2), 1, D3DCOLOR_XRGB(255,0,0), pDevice);
    DrawLine((oViewport.Width / 2), (oViewport.Height / 2) - 10, (oViewport.Width / 2), (oViewport.Height / 2) + 10, 1, D3DCOLOR_XRGB(255,0,0), pDevice);
    If that doesn't work, you're hooking incorrectly.

  6. #111
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,014
    Reputation
    202
    Thanks
    2,934
    My Mood
    Twisted
    Quote Originally Posted by Sealionone View Post
    D3DX stuff D/Cs now, as in ID3DXLine/Font.
    For the crosshair, instead just do this :
    Code:
    void DrawLine(int x, int y, int x2, int y2, int width, DWORD color, LPDIRECT3DDEVICE9 pDevice)
    {
    	
    	FillRGB(x, y, x2 - x, y2 - y, color, pDevice);
    
    }
    Then all you need to do is get the viewport by doing

    DEVICE->GetViewport(...);

    and then draw the crosshair :
    Code:
    //I used oViewport for my viewport
    DrawLine((oViewport.Width / 2) - 10, (oViewport.Height / 2), (oViewport.Width / 2) + 10, (oViewport.Height / 2), 1, D3DCOLOR_XRGB(255,0,0), pDevice);
    DrawLine((oViewport.Width / 2), (oViewport.Height / 2) - 10, (oViewport.Width / 2), (oViewport.Height / 2) + 10, 1, D3DCOLOR_XRGB(255,0,0), pDevice);
    If that doesn't work, you're hooking incorrectly.
    u didnt read above :P

    I got crosshair working... it works fine. I just cant get CIRCLE working.... it d/cs.

    Current Works:
    ---Horror Game






    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  7. #112
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,889
    Reputation
    163
    Thanks
    3,289
    My Mood
    Sleepy
    Well I can't think of anything you're doing wrong..

    Code:
    //ES or Present :
    if(p_line == NULL){
        D3DXCreateLine(...);
    }
    DrawCircle(...);
    
    //In Reset :
    p_line->OnLostDevice();
    
    HRESULT hreturn = oReset(pDevice, pPresentationParameters);
    
    p_line->OnResetDevice();
    
    return hreturn;
    Change p_line to the name of your line.

  8. #113
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,014
    Reputation
    202
    Thanks
    2,934
    My Mood
    Twisted
    Quote Originally Posted by Sealionone View Post
    Well I can't think of anything you're doing wrong..

    Code:
    //ES or Present :
    if(p_line == NULL){
        D3DXCreateLine(...);
    }
    DrawCircle(...);
    
    //In Reset :
    p_line->OnLostDevice();
    
    HRESULT hreturn = oReset(pDevice, pPresentationParameters);
    
    p_line->OnResetDevice();
    
    return hreturn;
    Change p_line to the name of your line.
    uhh what?? o.O

    Current Works:
    ---Horror Game






    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  9. #114
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,889
    Reputation
    163
    Thanks
    3,289
    My Mood
    Sleepy
    Quote Originally Posted by msflames3 View Post


    uhh what?? o.O
    What's confusing ? It's all there except you need to fill in the ...s with stuff.

  10. #115
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,014
    Reputation
    202
    Thanks
    2,934
    My Mood
    Twisted
    where u put DrawCircle(...) Is that the thing thats after global or what?
    And ac1d never said anything bout Reset

    Current Works:
    ---Horror Game






    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  11. #116
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,889
    Reputation
    163
    Thanks
    3,289
    My Mood
    Sleepy
    Quote Originally Posted by msflames3 View Post
    where u put DrawCircle(...) Is that the thing thats after global or what?
    And ac1d never said anything bout Reset
    Well acid is acid.

    You reset the line just like your font.
    DrawCircle goes wherever the hell you want it to go really.

    Put it with the text drawing I guess.

  12. #117
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,014
    Reputation
    202
    Thanks
    2,934
    My Mood
    Twisted
    Quote Originally Posted by Sealionone View Post
    Well acid is acid.

    You reset the line just like your font.
    DrawCircle goes wherever the hell you want it to go really.

    Put it with the text drawing I guess.
    can u just post the whole code u use? cuz ur basically telling me to use ac1ds and urs.. but im just confused... like i said before... d3d stuff is not my forte

    Current Works:
    ---Horror Game






    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  13. #118
    juggernault5's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    .....In my Computer......
    Posts
    59
    Reputation
    10
    Thanks
    2
    My Mood
    Hot
    This is for C++???????
    MASTER-KILLER NEW CODER



    MPGH IS THE BEST

  14. #119
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,014
    Reputation
    202
    Thanks
    2,934
    My Mood
    Twisted
    Quote Originally Posted by juggernault5 View Post
    This is for C++???????
    no its visual basic =.=

    Current Works:
    ---Horror Game






    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.

  15. #120
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,406
    Reputation
    157
    Thanks
    3,991
    My Mood
    Flirty
    Quote Originally Posted by Sealionone View Post
    Well acid is acid.

    You reset the line just like your font.
    DrawCircle goes wherever the hell you want it to go really.

    Put it with the text drawing I guess.
    Shutup kient :P
    I dont reset my line and it works fine LOL
    When i reset it it used to crash so i took it out

Page 8 of 13 FirstFirst ... 678910 ... LastLast

Similar Threads

  1. [Release] Class library with some useful functions.
    By t7ancients in forum C# Programming
    Replies: 8
    Last Post: 05-17-2011, 05:41 AM
  2. Useful Functions
    By Iamazn1 in forum Visual Basic Programming
    Replies: 6
    Last Post: 01-15-2011, 01:14 AM
  3. [Release] DrawCheckBox Function
    By DeadLinez in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 17
    Last Post: 09-10-2010, 05:49 AM
  4. [Discussion] Ideas for my next launcher release, look, functions & more
    By teun95 in forum CrossFire Hacks & Cheats
    Replies: 17
    Last Post: 03-02-2010, 05:38 PM
  5. [Release] USE OPK FOR COMBAT ARMS NO DOWNLOAD UNPATCHABLE AND UNDETECTABLE!!!
    By wetrichard in forum Combat Arms Hacks & Cheats
    Replies: 114
    Last Post: 05-24-2009, 10:40 AM