Page 1 of 3 123 LastLast
Results 1 to 15 of 31
  1. #1
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh

    [help needed] new to this

    i made my very first hack tonight thanks to the stickied (and very thurough) tutorial

    now i want to add to it, i have added somethings that i have seen here on forum but my problem is that whatever the first hack code is that's included in the void menu() { *code here* } is the only hack that works when i start the game (yes i am recompiling it after each edit, yes i am rebuilding it after each edit -.-")

    here is the code below, maybe it has to do with how i set it up...

    Code:
    #include <windows.h>
    
    bool IsGameReadyForHook()
    {
    if( GetModuleHandleA( "d3d9.dll"     ) != NULL 
    && GetModuleHandleA( "ClientFX.fxd" ) != NULL 
    && GetModuleHandleA( "CShell.dll"   ) != NULL )
    return true;
    return false;
    }
    
    void __cdecl PushToConsole( const char* szCommand )
    {
    DWORD *LTClient = ( DWORD* )(0x3778BFB0);
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }
    
    void main() {
    while(true)
    {
    	{
    		PushToConsole("SkelModelStencil 1");
    		PushToConsole("PerturbRotationEffect  0.000000");
    		PushToConsole("PerturbIncreaseSpeed 0.000000"); 
    		PushToConsole("PerturbWalkPercent 0.000000"); 
    		PushToConsole("PerturbFiringIncreaseSpeed 0.006000");
    		}
    	{
    
    				    bool walls = false;
        while(true)
        {
            if(GetAsyncKeyState(VK_NUMPAD0)<0){     
                walls = !walls;  
                if(walls){ 
                    memcpy((LPVOID)0x57207A, "\x6A\x01", 2);
                } else { 
                    memcpy((LPVOID)0x57207A, "\x6A\x00", 2);
                }
                Sleep(300);
    
            }
    		Sleep(10);
    	}
    	{
    		bool recoil = false;
    		while(true)
    		{
    			if(GetAsyncKeyState(VK_NUMPAD2)<0);
    			recoil = !recoil;
    			if(recoil){
    			memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3);
    			memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3);
    			memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3);
    			memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3);
    			memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3);
    			} else {
    				memcpy((LPVOID)0x3741A550, "\xD8\x66\x54", 3);
    				memcpy((LPVOID)0x3740AA99, "\xD9\x46\x54", 3);
    				memcpy((LPVOID)0x3741A564, "\xD9\x5E\x54", 3);
    				memcpy((LPVOID)0x3741A567, "\xD9\x46\x48", 3);
    				memcpy((LPVOID)0x3741A570, "\xD9\x5E\x48", 3);
    			}
    			Sleep(300);
    		}
    		Sleep(10);
    	}
    	{
    		bool reload = false;
    		while(true)
    		{
    			if(GetAsyncKeyState(VK_NUMPAD3)<0);
    			reload = !reload;
    			if(reload){
    				memcpy((LPVOID)0x37466264, "\x90\x90\x90\x90\x90\x90", 6);
    			} else {
    				memcpy((LPVOID)0x37466264, "\x0F\x84\xB1\x01\x00\x00", 6);
    			}
    			Sleep(300);
    		}
    		Sleep(10);
    	}
    }
    }
    }
    
    void dwHackThread() {
    }
    
    DWORD WINAPI dwHackThread(LPVOID) {
    	while ( !IsGameReadyForHook() )
    		Sleep(100);
    	main();
    	return 0;
    }
    
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
    DisableThreadLibraryCalls(hDll);
    if ( dwReason == DLL_PROCESS_ATTACH )
    {
    CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
    }
    return TRUE;
    }

    any help is greatly appreciated and you will be thanked! (also feel free to use any and/or all the code posted above, i can't say you can't...so do it if ya want lol)

  2. #2
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    i like using memoria, just saying. try doing a nothing console command

    try this->pushtoconsole ("Fragself 1");

    and see if that works (should kill your self)
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  3. #3
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    lol...i'll try it but i wont like killin myself xD

  4. #4
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    its just a test to make sure your base works
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  5. #5
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    tried it, i didn't die but the NX chams work, nothing else does though, and if you look at the code, NX Chams is the first set of code
    i also didn't die
    and as i just figured out. the glass walls hack DOES work also

    [spoiler][/spoiler]
    Last edited by supercarz1991; 07-10-2010 at 05:39 PM.

  6. #6
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    just do this

    put this under void main

    {
    while(1)
    {
    //no gun

    this->PushToConsole("DrawGuns 0");

    }

    //Draw Guns
    if(GetAsyncKeyState(VK_RSHIFT)<0){
    this->PushToConsole("DrawGuns 1");
    }



    }
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  7. #7
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    nope, the only hacks working in my dll are Glass Walls, and Satillite chams...

  8. #8
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Judging by the amount of syntax errors and major logic errors I would say you don't know C++.

    I wouldn't advise making a hack or releasing one because there are already enough out by people who don't know C++ and because you need to learn so people don't need to help you.

    Code:
    void main() 
    {
    
    	bool walls = false, recoil = false, reload = false;
    
    	while(true)
    	{
    
    		if(GetAsyncKeyState(VK_NUMPAD0)<0){     
    			walls = !walls;  
    			if(walls){ 
    				memcpy((LPVOID)0x57207A, "\x6A\x01", 2);
    			} else { 
    				memcpy((LPVOID)0x57207A, "\x6A\x00", 2);
    			}
    			Sleep(300);
    		}
    
    		if(GetAsyncKeyState(VK_NUMPAD2)<0){
    			recoil = !recoil;
    			if(recoil){
    				memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3);
    				memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3);
    				memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3);
    				memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3);
    				memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3);
    			} else {
    				memcpy((LPVOID)0x3741A550, "\xD8\x66\x54", 3);
    				memcpy((LPVOID)0x3740AA99, "\xD9\x46\x54", 3);
    				memcpy((LPVOID)0x3741A564, "\xD9\x5E\x54", 3);
    				memcpy((LPVOID)0x3741A567, "\xD9\x46\x48", 3);
    				memcpy((LPVOID)0x3741A570, "\xD9\x5E\x48", 3);
    			}
    			Sleep(300);
    		}
    		if(GetAsyncKeyState(VK_NUMPAD3)<0){
    			reload = !reload;
    			if(reload){
    				memcpy((LPVOID)0x37466264, "\x90\x90\x90\x90\x90\x90", 6);
    			} else {
    				memcpy((LPVOID)0x37466264, "\x0F\x84\xB1\x01\x00\x00", 6);
    			}
    			Sleep(300);
    
    		}
    	Sleep(10);
    
    	}
    
    }
    Please don't post another question before you have actually learned the language.

  9. #9
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    if you pm and add me on msn, i might help you out bro
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  10. #10
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    i posted this here so i can learn to code...how else am i gonna learn if i don't ask questions?

  11. #11
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    seal, give em a break bro
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  12. #12
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    thanks zman, at least i'm trying to learn instead of like the other guys that just sit and ask for free stuff xD

  13. #13
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    idc if you ask question so just pm or post em
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

  14. #14
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    will do,

    lol i'm messing with rez mods now though...the lil project i sent you was giving me a headache cuz i couldn't figure it out lol

  15. #15
    zmansquared's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    Kickin it at Microsoft
    Posts
    2,086
    Reputation
    36
    Thanks
    221
    My Mood
    Cheerful
    i would NOT start with what you gave me. go small bro
    Need Help With Coding or Something??? MSN me
    zmansquared@hotmail.com


    I am the one and only Microsoft Fag!!!

    Quote:
    Originally Posted by Arhk
    All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
    ~


    Take this Pic everyone!



    next-

Page 1 of 3 123 LastLast

Similar Threads

  1. [Solved] Need help with doqwnload hack and inject ect new to this
    By chichichi999 in forum CrossFire Help
    Replies: 8
    Last Post: 06-22-2011, 04:40 PM
  2. i need help i am new at this
    By Packman5195 in forum Combat Arms Help
    Replies: 13
    Last Post: 03-08-2011, 11:49 PM
  3. New to this, need help
    By ANlMUS in forum Combat Arms Help
    Replies: 8
    Last Post: 01-20-2011, 09:07 PM
  4. Hi!! i need help im new in this!!!
    By lolFTW in forum Combat Arms Discussions
    Replies: 27
    Last Post: 03-13-2010, 07:47 PM
  5. Help!! Im new at this...
    By joeacgoou in forum Combat Arms Hacks & Cheats
    Replies: 7
    Last Post: 06-24-2009, 04:57 AM