Results 1 to 6 of 6
  1. #1
    steffen123456789's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    In my bed
    Posts
    6
    Reputation
    10
    Thanks
    0
    My Mood
    Crappy

    need help with dll main

    Code:
    bool Ready2Hook()
    {
        if(GetModuleHandleA("CShell.dll")   != NULL
        && GetModuleHandleA("ClientFx.fxd") != NULL)
            return 1;
        return 0;
    }
    if i use this code to check the CShell.dll and ClientFx.fxd it dont works but if
    if use this code with out ClientFx.fxd it makes the next step but then dont works crossfire more.

  2. #2
    giniyat202's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in my house
    Posts
    286
    Reputation
    9
    Thanks
    258
    My Mood
    Cheerful
    Quote Originally Posted by steffen123456789 View Post
    bool Ready2Hook()
    {
    if((GetModuleHandleA("CShell.dll")) && (GetModuleHandleA("ClientFx.fxd")))
    return 1;
    return 0;
    }
    you forgot ) after CShell and ( before second GetModuleHandle
    i have fixed it now
    press thanks
    Last edited by giniyat202; 08-13-2011 at 07:00 AM.

  3. #3
    steffen123456789's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    In my bed
    Posts
    6
    Reputation
    10
    Thanks
    0
    My Mood
    Crappy
    i test it ^^
    edit: no sorry but waht is false hmm her is the complet code
    *i user win7 x64 c++ 2010

    Code:
    #include <iostream>
    #include <windows.h>
    
    
    
    #define WeaponMgr       0xA2A7E8
    #define NoReload        0x2424
    
    DWORD WINAPI Hacks(LPVOID)
    {
        bool reload = true;
     
    
        while(1)
        {
            DWORD CShell     = (DWORD)GetModuleHandleA("CShell.dll");
    	DWORD pWeaponMgr = *(DWORD*)(CShell + 0xA2A7E8);
    
    	if(GetAsyncKeyState(VK_F2) || GetAsyncKeyState(VK_F3) &1) { reload = true; Beep((457, 180)); }
    
    
    	if(reload)
    	{
    	    if (pWeaponMgr)
    	    {
    	        for(int i=0; i<445; i++)
    		{
    		    if((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+(4*i))) != NULL)
    		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+(4*i))) + 0x2424) = 999999; //scheinbarer standart 100
    		}
    	    }
    	}
    
    	Sleep(100);
        }
    }
    
    //i mean her is the problem [
    bool Ready2Hook()
    {
    if(GetModuleHandleA("CShell.dll"))
       return 1;
    return 0;
    }
    //]
    DWORD WINAPI Wait(LPVOID)
    {
        while(!Ready2Hook()) Sleep(200);
    	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
        return 0;
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
        DisableThreadLibraryCalls(hDll);
        
        if ( dwReason == DLL_PROCESS_ATTACH )
        {
    	 MessageBoxA(0, "tt","tt", 0);
    
    	CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
        }
        return 1;
    }
    Last edited by steffen123456789; 08-13-2011 at 10:01 AM.

  4. #4
    giniyat202's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in my house
    Posts
    286
    Reputation
    9
    Thanks
    258
    My Mood
    Cheerful
    Quote Originally Posted by steffen123456789 View Post
    i test it ^^
    edit: no sorry but waht is false hmm her is the complet code
    *i user win7 x64 c++ 2010

    Code:
    #include <iostream>
    #include <windows.h>
    
    
    
    #define WeaponMgr       0xA2A7E8
    #define NoReload        0x2424
    
    DWORD WINAPI Hacks(LPVOID)
    {
        bool reload = true;
     
    
        while(1)
        {
            DWORD CShell     = (DWORD)GetModuleHandleA("CShell.dll");
    	DWORD pWeaponMgr = *(DWORD*)(CShell + 0xA2A7E8);
    
    	if(GetAsyncKeyState(VK_F2) || GetAsyncKeyState(VK_F3) &1) { reload = true; Beep((457, 180)); }
    
    
    	if(reload)
    	{
    	    if (pWeaponMgr)
    	    {
    	        for(int i=0; i<445; i++)
    		{
    		    if((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+(4*i))) != NULL)
    		        *(float*)((*(DWORD*)((*(DWORD*)(CShell+0xA2A7E8))+(4*i))) + 0x2424) = 999999; //scheinbarer standart 100
    		}
    	    }
    	}
    
    	Sleep(100);
        }
    }
    
    //again here is the fix
    bool Ready2Hook()
    {
    if((GetModuleHandleA("CShell.dll")) && (GetModuleHandleA("ClientFx.fxd")))
       return 1;
    return 0;
    }
    //]
    DWORD WINAPI Wait(LPVOID)
    {
        while(!Ready2Hook()) Sleep(200);
    	CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Hacks, NULL, NULL, NULL);
        return 0;
    }
    
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
        DisableThreadLibraryCalls(hDll);
        
        if ( dwReason == DLL_PROCESS_ATTACH )
        {
    	 MessageBoxA(0, "tt","tt", 0);
    
    	CreateThread(0,0,(LPTHREAD_START_ROUTINE)Wait,0,0,0);
        }
        return 1;
    }
    /msg2short

  5. #5
    Dark Side's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Location
    West London
    Posts
    670
    Reputation
    99
    Thanks
    1,372
    My Mood
    Asleep
    Delete Dllmain from source file's.

    Leecher using swiftshit base

    Delete Dllmain from source file's.

    Leecher using swiftshit base

  6. #6
    steffen123456789's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    In my bed
    Posts
    6
    Reputation
    10
    Thanks
    0
    My Mood
    Crappy
    and it dont works at me *to giniyat202
    no one have an idea?
    Last edited by steffen123456789; 08-13-2011 at 02:55 PM.

Similar Threads

  1. [Solved] I really need help with dll files
    By MrNate in forum CrossFire Help
    Replies: 2
    Last Post: 10-27-2011, 05:49 PM
  2. i need help with DLL.s
    By snippadan in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 11
    Last Post: 08-17-2010, 06:58 PM
  3. i need help with the d3dx9_35.dll ?
    By poip0i in forum Combat Arms Help
    Replies: 13
    Last Post: 07-30-2010, 04:55 PM
  4. I NEED HELP WITH INJECTING .DLL FILE
    By cabinfever20 in forum Combat Arms Help
    Replies: 11
    Last Post: 02-15-2010, 08:35 PM
  5. Need help with missing .dll file
    By crossfire-noob in forum CrossFire Hacks & Cheats
    Replies: 11
    Last Post: 08-31-2009, 12:02 PM