Results 1 to 9 of 9
  1. #1
    kelechi96's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    ROOT
    Posts
    59
    Reputation
    10
    Thanks
    4

    How Can I Improve This Code ?

    Code:
    void main()
    {
    	bool NxChamOn = 0;
    	bool NoSwayOn = 0;
    	bool PickupOn = 0;
    	bool NoSpreadOn = 0;
    	bool RemovalsOn = 0;
    	bool FastReloadOn = 0;
    	bool NoRecoilOn = 0;
    	bool Panic = 0;
    
    	while(true)
    	{
    //Show FPS
    		PushToConsole("ShowFps 1");
    //Nx Chams
    		if(GetAsyncKeyState(VK_NUMPAD1)&1)
    			NxChamOn = !NxChamOn;
    		if(NxChamOn)
    			PushToConsole("SkelModelStencil 1" );
    		else
    			PushToConsole("SkelModelStencil 0" );
    		if(Panic)
    			PushToConsole("SkelModelStencil 0" );
    //No Sway
    		if(GetAsyncKeyState(VK_NUMPAD2)&1)
    			NoSwayOn = !NoSwayOn;
    		if(NoSwayOn)
    			PushToConsole("WeaponSway 0.000000" );
    		else
    			PushToConsole("WeaponSway 1.000000" );
    		if(Panic)
    			PushToConsole("SkelModelStencil 0" );
    //Pickup
    		if(GetAsyncKeyState(VK_NUMPAD3)&1)
    			PickupOn = !PickupOn;
    		if(PickupOn)
    			PushToConsole("ActivationDistance 999999" );
    		else
    			PushToConsole("ActivationDistance 10" );
    		if(Panic)
    			PushToConsole("SkelModelStencil 0" );
    //No Spread
    		if(GetAsyncKeyState(VK_NUMPAD4)&1)
    			NoSpreadOn = !NoSpreadOn;
    		if(NoSpreadOn)
    		{
    			PushToConsole("PerturbRotationEffect  0.000000" );
    			PushToConsole("PerturbIncreaseSpeed 0.000000" );
    			PushToConsole("PerturbWalkPercent 0.000000" );
    			PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
    			PushToConsole("PerturbRecoil 0.000000" );
    			PushToConsole("FireMovePerturb 0.000000" );
    			PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
    			PushToConsole("ZoomedFireMovePerturb 0.000000" );
    			PushToConsole("ZoomedFireDuckPerturb 0.000000" );
    		}
    		else
    		{
    			PushToConsole("PerturbRotationEffect  3.000000" );
    			PushToConsole("PerturbIncreaseSpeed 3.000000" );
    			PushToConsole("PerturbWalkPercent 9.000000" );
    			PushToConsole("PerturbFiringIncreaseSpeed 0.500000" );
    			PushToConsole("PerturbRecoil 9.000000" );
    			PushToConsole("FireMovePerturb 9.000000" );
    			PushToConsole("ZoomedFireMoveDuckPerturb 9.000000" );
    			PushToConsole("ZoomedFireMovePerturb 9.000000" );
    			PushToConsole("ZoomedFireDuckPerturb 9.000000" );
    		}
    		if(Panic)
    			PushToConsole("SkelModelStencil 0" );
    //Removals
    		if(GetAsyncKeyState(VK_NUMPAD5)&1)
    			RemovalsOn = !RemovalsOn;
    		if(RemovalsOn)
    		{
    			PushToConsole("DynamicLight 0" );
    			PushToConsole("EnableWeatherFX 0" );
    			PushToConsole("MuzzleLight 0" );
    			PushToConsole("SnowEnable 0" );
    			PushToConsole("CamDamage 0" );
    			PushToConsole("ModelApplySun 0" );
    			PushToConsole("ClientFXDetailLevel 0" );
    			PushToConsole("ModelShadow_Proj_Enable 0" );
    			PushToConsole("DebrisFXLevel 0" );
    		}
    		if(!RemovalsOn)
    		{
    			PushToConsole("DynamicLight 0" );
    			PushToConsole("EnableWeatherFX 0" );
    			PushToConsole("MuzzleLight 0" );
    			PushToConsole("SnowEnable 0" );
    			PushToConsole("CamDamage 0" );
    			PushToConsole("ModelApplySun 0" );
    			PushToConsole("ClientFXDetailLevel 0" );
    			PushToConsole("ModelShadow_Proj_Enable 0" );
    			PushToConsole("DebrisFXLevel 0" );
    		}
    		if(Panic)
    			PushToConsole("SkelModelStencil 0" );
    //Reload Hack
    		if(GetAsyncKeyState(VK_NUMPAD6)&1)
    			FastReloadOn = !FastReloadOn;
    		if(FastReloadOn)
    			PushToConsole("ReloadSpeed 0.000000" );
    		else
    			PushToConsole("ReloadSpeed 3.000000" );
    		if(Panic)
    			PushToConsole("SkelModelStencil 0" );
    //No Recoil
    /*		if(GetAsyncKeyState(VK_NUMPAD7)&1)
    			NoRecoil = !NoRecoil;
    		if(NoRecoilOn)
    		{
    			memcpy((LPVOID)(0x3741A700),"\0x90\0x90\0x90", 3);			
    			memcpy((LPVOID)(0x3741A714),"\0x90\0x90\0x90", 3);			
    			memcpy((LPVOID)(0x3741A717),"\0x90\0x90\0x90\0x90\0x90\0x90", 6);
    			memcpy((LPVOID)(0x37418209),"\0x90\0x90\0x90", 3);
    			memcpy((LPVOID)(0x3741A720),"\0x90\0x90\0x90", 3);
    		}
    		if(GetAsyncKeyState(VK_NUMPAD7)&1 && !NoRecoilOn)
    		{
    			NoRecoilOn = 0;
    			memcpy((LPVOID)(0x3741A700),"\0xD8\0x66\0x54", 3);			
    			memcpy((LPVOID)(0x3741A714),"\0xD9\0x46\0x54", 3);			
    			memcpy((LPVOID)(0x3741A717),"\0xD9\0x5E\0x54\0xD9\0x46\0x48", 6);
    			memcpy((LPVOID)(0x37418209),"\0xD9\0x46\0x48", 3);
    			memcpy((LPVOID)(0x3741A720),"\0xD9\0x5E\0x48", 3);
    		}
    		if(Panic)
    		{
    			NoRecoilOn = 0;
    			memcpy((LPVOID)(0x3741A700),"\0xD8\0x66\0x54", 3);			
    			memcpy((LPVOID)(0x3741A714),"\0xD9\0x46\0x54", 3);			
    			memcpy((LPVOID)(0x3741A717),"\0xD9\0x5E\0x54\0xD9\0x46\0x48", 6);
    			memcpy((LPVOID)(0x37418209),"\0xD9\0x46\0x48", 3);
    			memcpy((LPVOID)(0x3741A720),"\0xD9\0x5E\0x48", 3);;
    		}
    */	
    //Panic
    		if(GetAsyncKeyState(VK_NUMPAD0)&1)
    			Panic = !Panic;
    		Sleep(50);
    	}
    }
    1. Grant power to the people and the people will grant power to you.

    2. Make the strong your allys and the weak your friends.

    These are the laws of freedom

  2. #2
    Kuro Tenshi's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Playing Eroges/DigiArt sculpting (No ... At internship)
    Posts
    3,635
    Reputation
    70
    Thanks
    746
    My Mood
    Blah
    maybe by fixing the code :3 comon if u want to expect this to be leech prove ill screw you stuck to your chair, and the chair to the ground:
    [php]
    void main()
    {
    bool NxChamOn = 0;
    bool NoSwayOn = 0;
    bool PickupOn = 0;
    bool NoSpreadOn = 0;
    bool RemovalsOn = 0;
    bool FastReloadOn = 0;
    bool NoRecoilOn = 0;
    bool Panic = 0;

    while(true)
    {
    //Show FPS
    PushToConsole("ShowFps 1");
    //Nx Chams
    if(GetAsyncKeyState(VK_NUMPAD1)&1)
    NxChamOn = !NxChamOn;
    if(NxChamOn)
    PushToConsole("SkelModelStencil 1" );
    else
    PushToConsole("SkelModelStencil 0" );
    if(Panic)
    PushToConsole("SkelModelStencil 0" );
    //No Sway
    if(GetAsyncKeyState(VK_NUMPAD2)&1)
    NoSwayOn = !NoSwayOn;
    if(NoSwayOn)
    PushToConsole("WeaponSway 0.000000" );
    else
    PushToConsole("WeaponSway 1.000000" );
    if(Panic)
    PushToConsole("WeaponSway 1.000000" );
    //Pickup
    if(GetAsyncKeyState(VK_NUMPAD3)&1)
    PickupOn = !PickupOn;
    if(PickupOn)
    PushToConsole("ActivationDistance 999999" );
    else
    PushToConsole("ActivationDistance 10" );
    if(Panic)
    PushToConsole("ActivationDistance 10" );
    //No Spread
    if(GetAsyncKeyState(VK_NUMPAD4)&1)
    NoSpreadOn = !NoSpreadOn;
    if(NoSpreadOn)
    {
    PushToConsole("PerturbRotationEffect 0.000000" );
    PushToConsole("PerturbIncreaseSpeed 0.000000" );
    PushToConsole("PerturbWalkPercent 0.000000" );
    PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
    PushToConsole("PerturbRecoil 0.000000" );
    PushToConsole("FireMovePerturb 0.000000" );
    PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
    PushToConsole("ZoomedFireMovePerturb 0.000000" );
    PushToConsole("ZoomedFireDuckPerturb 0.000000" );
    }
    else
    {
    PushToConsole("PerturbRotationEffect 3.000000" );
    PushToConsole("PerturbIncreaseSpeed 3.000000" );
    PushToConsole("PerturbWalkPercent 9.000000" );
    PushToConsole("PerturbFiringIncreaseSpeed 0.500000" );
    PushToConsole("PerturbRecoil 9.000000" );
    PushToConsole("FireMovePerturb 9.000000" );
    PushToConsole("ZoomedFireMoveDuckPerturb 9.000000" );
    PushToConsole("ZoomedFireMovePerturb 9.000000" );
    PushToConsole("ZoomedFireDuckPerturb 9.000000" );
    }
    if(Panic)
    {
    PushToConsole("PerturbRotationEffect 3.000000" );
    PushToConsole("PerturbIncreaseSpeed 3.000000" );
    PushToConsole("PerturbWalkPercent 9.000000" );
    PushToConsole("PerturbFiringIncreaseSpeed 0.500000" );
    PushToConsole("PerturbRecoil 9.000000" );
    PushToConsole("FireMovePerturb 9.000000" );
    PushToConsole("ZoomedFireMoveDuckPerturb 9.000000" );
    PushToConsole("ZoomedFireMovePerturb 9.000000" );
    PushToConsole("ZoomedFireDuckPerturb 9.000000" );
    }
    //Removals
    if(GetAsyncKeyState(VK_NUMPAD5)&1)
    RemovalsOn = !RemovalsOn;
    if(RemovalsOn)
    {
    PushToConsole("DynamicLight 0" );
    PushToConsole("EnableWeatherFX 0" );
    PushToConsole("MuzzleLight 0" );
    PushToConsole("SnowEnable 0" );
    PushToConsole("CamDamage 0" );
    PushToConsole("ModelApplySun 0" );
    PushToConsole("ClientFXDetailLevel 0" );
    PushToConsole("ModelShadow_Proj_Enable 0" );
    PushToConsole("DebrisFXLevel 0" );
    }
    if(!RemovalsOn)
    {
    PushToConsole("DynamicLight 1" );
    PushToConsole("EnableWeatherFX 1" );
    PushToConsole("MuzzleLight 1" );
    PushToConsole("SnowEnable 1" );
    PushToConsole("CamDamage 1" );
    PushToConsole("ModelApplySun 1" );
    PushToConsole("ClientFXDetailLevel 1" );
    PushToConsole("ModelShadow_Proj_Enable 1" );
    PushToConsole("DebrisFXLevel 1" );
    }
    if(Panic)
    {
    PushToConsole("DynamicLight 1" );
    PushToConsole("EnableWeatherFX 1" );
    PushToConsole("MuzzleLight 1" );
    PushToConsole("SnowEnable 1" );
    PushToConsole("CamDamage 1" );
    PushToConsole("ModelApplySun 1" );
    PushToConsole("ClientFXDetailLevel 1" );
    PushToConsole("ModelShadow_Proj_Enable 1" );
    PushToConsole("DebrisFXLevel 1" );
    }
    //Reload Hack
    if(GetAsyncKeyState(VK_NUMPAD6)&1)
    FastReloadOn = !FastReloadOn;
    if(FastReloadOn)
    PushToConsole("ReloadSpeed 0.000000" );
    else
    PushToConsole("ReloadSpeed 3.000000" );
    if(Panic)
    PushToConsole("ReloadSpeed 3.000000" );
    //No Recoil
    /* if(GetAsyncKeyState(VK_NUMPAD7)&1)
    NoRecoilOn = !NoRecoilOn;
    if(NoRecoilOn)
    {
    memcpy((LPVOID)(0x3741A700),"\0x90\0x90\0x90", 3);
    memcpy((LPVOID)(0x3741A714),"\0x90\0x90\0x90", 3);
    memcpy((LPVOID)(0x3741A717),"\0x90\0x90\0x90\0x90\ 0x90\0x90", 6);
    memcpy((LPVOID)(0x37418209),"\0x90\0x90\0x90", 3);
    memcpy((LPVOID)(0x3741A720),"\0x90\0x90\0x90", 3);
    }
    if(GetAsyncKeyState(VK_NUMPAD7)&1 && !NoRecoilOn)
    {
    NoRecoilOn = 0;
    memcpy((LPVOID)(0x3741A700),"\0xD8\0x66\0x54", 3);
    memcpy((LPVOID)(0x3741A714),"\0xD9\0x46\0x54", 3);
    memcpy((LPVOID)(0x3741A717),"\0xD9\0x5E\0x54\0xD9\ 0x46\0x48", 6);
    memcpy((LPVOID)(0x37418209),"\0xD9\0x46\0x48", 3);
    memcpy((LPVOID)(0x3741A720),"\0xD9\0x5E\0x48", 3);
    }
    if(Panic)
    {
    NoRecoilOn = 0;
    memcpy((LPVOID)(0x3741A700),"\0xD8\0x66\0x54", 3);
    memcpy((LPVOID)(0x3741A714),"\0xD9\0x46\0x54", 3);
    memcpy((LPVOID)(0x3741A717),"\0xD9\0x5E\0x54\0xD9\ 0x46\0x48", 6);
    memcpy((LPVOID)(0x37418209),"\0xD9\0x46\0x48", 3);
    memcpy((LPVOID)(0x3741A720),"\0xD9\0x5E\0x48", 3);;
    }
    */
    //Panic
    if(GetAsyncKeyState(VK_NUMPAD0)&1)
    Panic = !Panic;
    Sleep(50);
    }
    }
    [/php]

    Last edited by Kuro Tenshi; 08-02-2010 at 09:49 AM.
    DigiDrawing|+ ( (Elfen Archer) )
    Link:
    https://www.mpgh.net/forum/148-showro...en-archer.html


    @ Anime Section,Otaku/weeabo (orz.) @Graphics Section, Novice DigiArtist


    neuest gift from Yura~Chan:
    https://bakyurayuu.deviantart.com/#/d372taw
    2nd Place MOTM#9 Theme: CharMods - Combat Arms [No - Thanks] button
    come on you know that don't want to push that ordinary button

  3. #3
    kelechi96's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    ROOT
    Posts
    59
    Reputation
    10
    Thanks
    4
    I don't expect it to be leech proof I don't care if someone leeches it what do you mean by fixing the code ?
    1. Grant power to the people and the people will grant power to you.

    2. Make the strong your allys and the weak your friends.

    These are the laws of freedom

  4. #4
    Kuro Tenshi's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Playing Eroges/DigiArt sculpting (No ... At internship)
    Posts
    3,635
    Reputation
    70
    Thanks
    746
    My Mood
    Blah
    Quote Originally Posted by kelechi96 View Post
    I don't expect it to be leech proof I don't care if someone leeches it what do you mean by fixing the code ?
    yeah half ur code was either wrong or not complete now it is...
    DigiDrawing|+ ( (Elfen Archer) )
    Link:
    https://www.mpgh.net/forum/148-showro...en-archer.html


    @ Anime Section,Otaku/weeabo (orz.) @Graphics Section, Novice DigiArtist


    neuest gift from Yura~Chan:
    https://bakyurayuu.deviantart.com/#/d372taw
    2nd Place MOTM#9 Theme: CharMods - Combat Arms [No - Thanks] button
    come on you know that don't want to push that ordinary button

  5. #5
    kelechi96's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    ROOT
    Posts
    59
    Reputation
    10
    Thanks
    4
    is that a compliment ?
    1. Grant power to the people and the people will grant power to you.

    2. Make the strong your allys and the weak your friends.

    These are the laws of freedom

  6. #6
    killerld's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    345
    Reputation
    11
    Thanks
    193
    My Mood
    Twisted
    What you mean with "improve the code !?". Do you know that this just a part of an hotkey hack ? x)


    Sorry for my bad English ! I'm French Canadian !

    - When you use my hack, Please Thank Me

    Release some Hacks []
    Able to code in PhP / Mysql []
    Able to code in VB []
    Able to code in C# []
    Able to do VB Injector []
    Release an Injector []
    Active Member in the Community []
    Member who help small Hacker []

  7. #7
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    Add a OPK /nuff said

    .

  8. #8
    kelechi96's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    ROOT
    Posts
    59
    Reputation
    10
    Thanks
    4
    lol ! If only I had the skill
    1. Grant power to the people and the people will grant power to you.

    2. Make the strong your allys and the weak your friends.

    These are the laws of freedom

  9. #9
    Kuro Tenshi's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Playing Eroges/DigiArt sculpting (No ... At internship)
    Posts
    3,635
    Reputation
    70
    Thanks
    746
    My Mood
    Blah
    Quote Originally Posted by Mr.Magicman View Post
    Add a OPK /nuff said

    .
    if i had the addies/mhs/ce / *see empty handed* + opk seems easier to do then telekill.
    DigiDrawing|+ ( (Elfen Archer) )
    Link:
    https://www.mpgh.net/forum/148-showro...en-archer.html


    @ Anime Section,Otaku/weeabo (orz.) @Graphics Section, Novice DigiArtist


    neuest gift from Yura~Chan:
    https://bakyurayuu.deviantart.com/#/d372taw
    2nd Place MOTM#9 Theme: CharMods - Combat Arms [No - Thanks] button
    come on you know that don't want to push that ordinary button

Similar Threads

  1. How can i improve this?
    By Gaz in forum Combat Arms Mod Discussion
    Replies: 10
    Last Post: 07-17-2011, 07:49 PM
  2. How can I do this?
    By Pwnzor122 in forum CrossFire Glitches
    Replies: 3
    Last Post: 02-21-2010, 09:25 PM
  3. how can i get this code!! ZackthOP7D3Dv2.dll
    By onyok0 in forum Soldier Front General
    Replies: 2
    Last Post: 12-23-2009, 07:37 AM
  4. [Help] How can I improve Lag?
    By lwtint in forum WarRock Discussions
    Replies: 15
    Last Post: 11-04-2009, 01:03 AM
  5. Can anyone translate this code ?
    By HeXel in forum C++/C Programming
    Replies: 27
    Last Post: 02-29-2008, 10:06 AM