unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Call Of Duty Series > Call Of Duty

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 05-18-2010, 09:20 PM
disco disco is offline
Administrator
 
Join Date: Feb 2010
Posts: 271
Default GUI Snippits

Posted by Inferno216.




I know that there aren't soo much coders that are working on CoD1 but if anyone still is coding for CoD1 and making GUI menu this codes below will help them abit

First code:
Code:
bool IsCursorOver( int x, int y, int w, int h )
{  
    float MouseX = *cursorX;
    float MouseY = *cursorY;

    if(MouseX > x && MouseY > y && MouseX < x + w && MouseY < y + h )
        return true;
    else
        return false;  ---This code will check when mouse is over your x,y for example:

     Drawing.CG_DrawStringExt(x,y+30,"Wallhack:^2On",colWhite,qfalse,qtrue,10,10,500);
}
Second code:
Code:
int     *cursorX     = (int*)   0x401C5314;  --Offsets for our cursor movements(needed for IsCursorOver function)
int     *cursorY     = (int*)   0x401C5318;  --I don't know if I explained this code well myself :P
Third code:
Code:
 *(int *)0x15B8AA4 |= 2;  //Drawing and Unlocking movements of our mouse
Enjoy and Have Fun!

~Inferno216
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
gui, snippits

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 03:31 PM.