Results 1 to 10 of 10
  1. #1
    antonio007's Avatar
    Join Date
    Nov 2007
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0

    CSS .dll problem [lag]

    I did not make this, I had help making this code. It works and hacks work. But when I inject it, it lags a lot.. Is there a way not to make it lag, like adding a code?

    Code:
    #include <windows.h>
    
    #define bypass 0x0DFAE744
    #define wallhack 0x243AEC3C
    #define smoke 0x243E7A3C
    #define noflash 0x241D1D81
    #define asuswall 0x0D8EB46C
    #define nofog 0x243ECF1C
    
    bool wallset = false;
    bool smokeset = false;
    bool noflashset = false;
    bool asuswallset = false;
    bool nofogset = false;
    
    DWORD wall = wallhack;
    DWORD sm = smoke;
    DWORD fl = noflash;
    DWORD as = asuswall;
    DWORD nf = nofog;
    
    void Hotkey()
    {
    	while(1)
    	{
    		if(GetAsyncKeyState(VK_LMENU) && GetAsyncKeyState(VkKeyScan('b')))
    		{
    			DWORD byp = bypass;
    			*(DWORD*)byp = 0x1;
    		}
    		
    		if(GetAsyncKeyState(VK_F1))
    		{
    			if(!wallset)
    			{
    				*(DWORD*)wall = 0x2;
    				wallset = !wallset;
    			} else {
    				*(DWORD*)wall = 0x1;
    				wallset = !wallset;
    			}
            }
            
            if(GetAsyncKeyState(VK_F2))
    		{         
    			if(!smokeset)
    			{
    				*(DWORD*)sm = 0x0;
    				smokeset = !smokeset;
    			} else {
    				*(DWORD*)sm = 0x1;
    				smokeset = !smokeset;
    			}
            }
            
            if(GetAsyncKeyState(VK_F3))
    		{
    			if(!noflashset)
    			{
    				*(DWORD*)fl = 0x276969;
    				noflashset = !noflashset;
    			} else {
    				*(DWORD*)fl = 0x0;
    				noflashset = !noflashset;
    			}
    		}
            
            if(GetAsyncKeyState(VK_F4))
    		{
    			if(!asuswallset)
    			{
    				*(DWORD*)as = 0x1;
    				asuswallset = !asuswallset;
    			} else {
    				*(DWORD*)as = 0x0;
    				asuswallset = !asuswallset;
    			}
            }
            
            if(GetAsyncKeyState(VK_F5))
    		{
    			if(!nofogset)
    			{
    				*(DWORD*)nf = 0x0;
    				nofogset = !nofogset;
    			} else {
    				*(DWORD*)nf = 0x1;
    				nofogset = !nofogset;
    			}
    		}                                   
    
    	}
    }
    
    bool APIENTRY DllMain(HINSTANCE hinst, DWORD reason, LPVOID asd)
    {
    	if(reason == DLL_PROCESS_ATTACH)
    	{
    		//MessageBox(NULL,"Injected","Injected",MB_OK);
    		CreateThread(0,0,(LPTHREAD_START_ROUTINE)Hotkey,0,0,0);
    	}
    	return true;
    }

  2. #2
    Threadstarter
    Unverified User
    antonio007's Avatar
    Join Date
    Nov 2007
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0
    I forgot to mention, it brings me fps to 15. Which is really low. I'm using xFaith's Valkyrie injector. Please help.

  3. #3
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,204
    My Mood
    Flirty
    *Cough*.... >_>... how bout a sleep timer. /facepalm

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  4. The Following 2 Users Say Thank You to why06 For This Useful Post:

    ac1d_buRn (03-04-2010),Retoxified (03-04-2010)

  5. #4
    Threadstarter
    Unverified User
    antonio007's Avatar
    Join Date
    Nov 2007
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by why06 View Post
    *Cough*.... >_>... how bout a sleep timer. /facepalm
    uhm.. can you show me how to do that? :P

  6. #5
    KABLE's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    California
    Posts
    2,863
    Reputation
    192
    Thanks
    282
    My Mood
    Pensive
    If you can code a hack then you should be able to add a sleep timer.

    Quote Originally Posted by TOXIN
    Shit, now I have to enter this chapacha shit.
    my tumblr
    How To: Not Get Banned Botting

    "Had a dream I was king. I woke up, still king."
    .................................................-Eminem

  7. #6
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by kAblE View Post
    If you can code a hack then you should be able to add a sleep timer.
    I did not make this, I had help making this code. It works and hacks work. But when I inject it, it lags a lot.. Is there a way not to make it lag, like adding a code?
    That is all.

  8. The Following User Says Thank You to Void For This Useful Post:

    antonio007 (03-05-2010)

  9. #7
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,204
    My Mood
    Flirty
    Quote Originally Posted by antonio007 View Post
    uhm.. can you show me how to do that? :P
    Sleep(timeInMillisecondsHere);

    That easy, but make sure you put it in the right spot. Sleep(200) should suffice.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  10. #8
    ac1d_buRn's Avatar
    Join Date
    Aug 2009
    Gender
    female
    Location
    CA Source Section
    Posts
    3,404
    Reputation
    157
    Thanks
    4,004
    My Mood
    Flirty
    Add a sleep timer and set it to 200
    200 always works well for me

  11. #9
    Threadstarter
    Unverified User
    antonio007's Avatar
    Join Date
    Nov 2007
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0
    thanks for the help guys.

  12. #10
    KABLE's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    California
    Posts
    2,863
    Reputation
    192
    Thanks
    282
    My Mood
    Pensive
    Quote Originally Posted by Davidm44 View Post
    That is all.
    TeeHee... Didn't see that

    I must open thy eyes!

    Quote Originally Posted by TOXIN
    Shit, now I have to enter this chapacha shit.
    my tumblr
    How To: Not Get Banned Botting

    "Had a dream I was king. I woke up, still king."
    .................................................-Eminem

Similar Threads

  1. dll. Problem
    By ImaKid in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 6
    Last Post: 02-08-2010, 11:53 AM
  2. dll problem?
    By mike4775 in forum Combat Arms Help
    Replies: 7
    Last Post: 01-21-2010, 01:47 AM
  3. .dll Problem
    By j0elself in forum Combat Arms Help
    Replies: 11
    Last Post: 09-05-2009, 02:12 AM
  4. Hack works for 1 game and dll problem
    By Chicco in forum Combat Arms Hacks & Cheats
    Replies: 22
    Last Post: 05-23-2009, 12:51 AM
  5. MPGH Combat Arms Pub hack Dll problem...
    By haikaboy in forum Combat Arms Hacks & Cheats
    Replies: 9
    Last Post: 04-25-2009, 04:54 PM