Results 1 to 11 of 11
  1. #1
    AtomicStone's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    828
    Reputation
    18
    Thanks
    476
    My Mood
    Lurking

    What is wrong with my NX Chams!?

    So I decided to get back into making hacks and make a small public hack and all my other hacks work.
    But.
    NXChams.
    What.
    The.
    Fuck.

    Take a look at the source and tell me if I am missing something

    Code:
    if(GetAsyncKeyState(VK_NUMPAD0)<0){
    PushToConsole("SkelModelStencil 1");
    }else{
    PushToConsole("SkelModelStencil 0");
    }

  2. #2
    HarvBot's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    56
    Reputation
    10
    Thanks
    5
    if(GetAsyncKeyState(VK_NUMPAD0)<1){
    PushToConsole("SkelModelStencil 1");
    }else{
    PushToConsole("SkelModelStencil 0");
    }

    GetAsyncKeyState

    0: should be held down the key.
    1: Press once and activate the function.
    Last edited by HarvBot; 05-24-2012 at 07:17 PM.

  3. #3
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Ontario, Canada
    Posts
    15,708
    Reputation
    3319
    Thanks
    11,132
    My Mood
    Happy
    The post above isn't the answer.

    Your operators are wrong.

    It should be > (Greater Than) not what you have < (Less Than).

    Well both work, its just better to check if its greater than 0. Good practice.

    Code:
    	if(GetAsyncKeyState(VK_NUMPAD0) < 0)
    	{
    		PushToConsole("SkelModelStencil 1");
    	}else{
    		PushToConsole("SkelModelStencil 0");
    	}
    You may have to encrypt your Console Command Strings.
    Last edited by Flengo; 05-24-2012 at 07:21 PM.
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.
     
     
    VM | PM

    Publicist Since 04.04.2015
    Middleman Since Unknown - Unknown
    Global Moderator Since 08.01.2013
    Donator Since 05.29.2013

    Minion+ Since 04.18.2013

    District 187 Minion Since 04.04.2013
    Steam Minion Since 02.26.2013
    WarRock Minion Since 02.19.2013
    A.V.A Minion Since 02.13.2013
    DayZ Minion Since 01.21.2013
    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


  4. #4
    AtomicStone's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    828
    Reputation
    18
    Thanks
    476
    My Mood
    Lurking
    Quote Originally Posted by comando2056 View Post
    The post above isn't the answer.

    Your operators are wrong.

    It should be > (Greater Than) not what you have < (Less Than).

    Well both work, its just better to check if its greater than 0. Good practice.

    Code:
    	if(GetAsyncKeyState(VK_NUMPAD0) < 0)
    	{
    		PushToConsole("SkelModelStencil 1");
    	}else{
    		PushToConsole("SkelModelStencil 0");
    	}
    You may have to encrypt your Console Command Strings.
    Thanks, Testing.

    On another note, Why have you blocked me on MSN/Something.

  5. #5
    HarvBot's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    56
    Reputation
    10
    Thanks
    5
    not figured it out

  6. #6
    AtomicStone's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    828
    Reputation
    18
    Thanks
    476
    My Mood
    Lurking
    HarvBot. Your code is so idiotic not even @cookiemonster- would believe it.
    Last edited by AtomicStone; 05-24-2012 at 08:27 PM.

  7. The Following 2 Users Say Thank You to AtomicStone For This Useful Post:

    [MPGH]Flengo (05-24-2012),Xipher (05-26-2012)

  8. #7
    Xipher's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Melbourne, AU.
    Posts
    1,784
    Reputation
    472
    Thanks
    1,688
    My Mood
    Innocent
    Quote Originally Posted by AtomicStone View Post
    HarvBot. Your code is so idiotic not even @cookiemonster- would believe it.
    Quote of the day

  9. #8
    speedforyou's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    741
    Reputation
    -59
    Thanks
    108
    My Mood
    Happy
    Quote Originally Posted by Xipher View Post


    Quote of the day
    LOL i have to agree LOL

    steel o-o's sig =
    = Done , = Not Done

    Leecher 0 =
    Newbie 25 =
    Member 50 =
    Advanced Member 100 =
    H4X0R Member 150 =
    Dual-Keyboard Member 250 =
    Expert Member 500 =
    's Trainer 750 =
    MPGH Expert 1000 =
    Synthetic Hacker 1250 =
    Blackhat Hacker 1500 =
    Whitehat Hacker 2000 =
    's Guardian 2500 =
    Upcoming MPGHiean 3000 =
    MPGH Addict 3500 =
    MPGHiean 4000 =
    MPGH Knight 4500 =
    MPGH Lord 5000 =
    MPGH Champion 5500 =
    MPGH King 6000 =
    MPGH Legend 6500 =
    MPGH God 7000 =
    MPGH God II 7500 =
    MPGH God III 8000 =
    MPGH God IV 8500 =
    MPGH God V 9000 =
    Arun's Slave 9500 =
    Dave's Slave 10000 =

  10. #9
    Saltine's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    494
    Reputation
    104
    Thanks
    625
    Quote Originally Posted by AtomicStone View Post
    So I decided to get back into making hacks and make a small public hack and all my other hacks work.
    But.
    NXChams.
    What.
    The.
    Fuck.

    Take a look at the source and tell me if I am missing something

    Code:
    if(GetAsyncKeyState(VK_NUMPAD0)<0){
    PushToConsole("SkelModelStencil 1");
    }else{
    PushToConsole("SkelModelStencil 0");
    }
    What your code currently accomplishes is activating chams only while numpad 0 is held down. Essentially, you should modify your code to have a boolean which is changed by the hotkey being hit once, and then activate chams based on that boolean. Like such:
    Code:
    // in globals
    bool chams = false;
    
    //in navigation
    if(GetAsyncKeyState(VK_NUMPAD0)&1)
    chams = !chams;
    
    //then in your hack loop
    (chams==true) ? PushToConsole("SkelModelStencil 1") : PushToConsole("SkelModelStencil 0");

    Oh no! Vortex is gay!

  11. #10
    AtomicStone's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    828
    Reputation
    18
    Thanks
    476
    My Mood
    Lurking
    Quote Originally Posted by Saltine View Post

    What your code currently accomplishes is activating chams only while numpad 0 is held down. Essentially, you should modify your code to have a boolean which is changed by the hotkey being hit once, and then activate chams based on that boolean. Like such:
    Code:
    // in globals
    bool chams = false;
    
    //in navigation
    if(GetAsyncKeyState(VK_NUMPAD0)&1)
    chams = !chams;
    
    //then in your hack loop
    (chams==true) ? PushToConsole("SkelModelStencil 1") : PushToConsole("SkelModelStencil 0");
    I have something like that.
    Now I have noticed that it is not the NXChams but it is all the ptc's themselves. I never had a problem with my code before.

  12. #11
    Flengo's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Ontario, Canada
    Posts
    15,708
    Reputation
    3319
    Thanks
    11,132
    My Mood
    Happy
    Quote Originally Posted by AtomicStone View Post
    I have something like that.
    Now I have noticed that it is not the NXChams but it is all the ptc's themselves. I never had a problem with my code before.
    Encrypt your PTC Strings.

    It might be your function.

    Code:
    void PushCommands(const char* Command)
    {
    	void* Console = (void*)ADDR_CONSOLEUNWRAPPED;
    
    	_asm
    	{
    		call get_eip
    			push Command
    			add eax, 0xF
    			push eax
    			jmp Console
    			add esp, 0x4
    	}
    	return;
    	_asm
    	{
    get_eip:
    		mov eax, [esp]
    		sub eax, 5
    			ret
    	}
    }
    I Read All Of My PM's & VM's
    If you need help with anything, just let me know.
     
     
    VM | PM

    Publicist Since 04.04.2015
    Middleman Since Unknown - Unknown
    Global Moderator Since 08.01.2013
    Donator Since 05.29.2013

    Minion+ Since 04.18.2013

    District 187 Minion Since 04.04.2013
    Steam Minion Since 02.26.2013
    WarRock Minion Since 02.19.2013
    A.V.A Minion Since 02.13.2013
    DayZ Minion Since 01.21.2013
    Combat Arms Minion Since 12.26.2012
    Contributor Since 11.16.2012
    Member Since 05.11.2010


Similar Threads

  1. What's wrong with this?
    By yup in forum Visual Basic Programming
    Replies: 4
    Last Post: 03-18-2008, 11:36 AM
  2. what is wrong with this ??
    By floris12345! in forum Visual Basic Programming
    Replies: 5
    Last Post: 01-16-2008, 06:22 PM
  3. What is wrong with my form?
    By Synns in forum Visual Basic Programming
    Replies: 1
    Last Post: 12-18-2007, 05:27 PM
  4. what is wrong with this source?
    By Petros in forum C++/C Programming
    Replies: 6
    Last Post: 07-04-2007, 05:33 PM
  5. What's wrong with MPGH
    By scooby107 in forum WarRock - International Hacks
    Replies: 6
    Last Post: 04-30-2007, 08:45 PM