Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    C++ Nub question


    boomy
     Share

    Recommended Posts

    Sorry this may seem really dumb that I can't get this working but I don't know what I did wrong. I'm trying to make a simple dll cheat that has only 5th slot, no spread, and no recoil. It will not have a menu or anything I just want those three features. I've got an injector that I'm using from another cheat and it injects my dll successfully but I don't get the desired results in game. Everything still has normal recoil, spread, and I don't have a 5th slot. Also, my gun fires really slow whenever I'm using my cheat. Can someone please look at my code and tell me what I'm doing wrong. Thank you so much in advance!!!

     

    #include <stdio.h>
    #include <windows.h>
    #include "dll.h"
    
    void Spread(float x)
    {
    if (GetAsyncKeyState(VK_LBUTTON ))
    {
    *(float*)(0xC2AC30) = x; //Spread Pointer
    }
    }
    
    void Recoil(float x, float y, float z)
    {
    DWORD dwPlayerPtr = *(DWORD*)0x14F0540; //Player Pointer
    if(dwPlayerPtr != 0)
    {
    *(float*)(dwPlayerPtr+0x2F4) = x; //X Offset
    *(float*)(dwPlayerPtr+0x2F8) = y; //Y Offset
    *(float*)(dwPlayerPtr+0x2FC) = z; //Z Offset
    }
    }
    
    void Slot5()
    {
    if(GetAsyncKeyState(VK_CONTROL) &1)
    {
    DWORD *slot= (DWORD*)0x00C2ABDA; //Slot Pointer
    *(int*)slot = 4;
    }
    }
    
    void HackThread()
    {
    for(;
    {
    Spread(0);
    Recoil(0,0,0);
    Slot5();
    Sleep(30); //What exactly does this do? I've seen anywhere from 5 to 30 in here
    }
    }
    BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
    {
    if(dwReason == DLL_PROCESS_ATTACH)
    {
    CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
    }
    return TRUE;
    }

    Edit: I updated the description of my problem to make it a little clearer.

    Edited by boomy
    Link to comment
    Share on other sites

    • 4 weeks later...

    void Recoil(float x, float y, float z)
    {
    DWORD dwPlayerPtr = *(DWORD*)0x14F0540; //Player Pointer
    if(dwPlayerPtr != 0)
    {
    *(float*)(dwPlayerPtr+0x2F4) = x; //X Offset
    *(float*)(dwPlayerPtr+0x2F8) = y; //Y Offset
    *(float*)(dwPlayerPtr+0x2FC) = z; //Z Offset
    }
    }

     

    why x, y, z offsets? do you want to teleport?

    Link to comment
    Share on other sites

    • 3 weeks later...

    X, Y and Z coordinates are for teleporting etc.

     

    I will give you no recoil:

     

    void Recoil()

    {

    DWORD dwPlayerPtr = *(DWORD*)ADR_PLAYERPOINTER;

    if(dwPlayerPtr != 0)

    {

    *(float*)(dwPlayerPtr+OFS_NORECOIL1) = 0;

    *(float*)(dwPlayerPtr+OFS_NORECOIL2) = 0;

    *(float*)(dwPlayerPtr+OFS_NORECOIL3) = 0;

    }

    }

     

    Now you have to work out how to do No Spread:

     

    * You do not need a hotkey for no spread, remove " if (GetAsyncKeyState(VK_LBUTTON )) "

     

    * For no spread u use *(int*) then the addy then the value, which is 0 as u want zero spread

     

    * You do not use PlayerPointer or ServerPointer for this code

     

    if you have any problems reply on this topic and i will help you

    Edited by Adrenaline
    Link to comment
    Share on other sites

    void HackThread()

    {

    for(;xD

    {

    Spread(0);

    Recoil(0,0,0);

    Slot5();

    Sleep(30); //What exactly does this do? I've seen anywhere from 5 to 30 in here

    }

    }

     

    void HackThread()

    {

    for(;O.o

    {

    Spread(0);

    Recoil(0,0,0); // Do not do this, use ()

    Slot5();

    Sleep(30); // <--- This reduces lag

    }

    }

     

    Correct Code:

     

    void HackThread()

    {

    for(;;)

    {

    Spread();

    Recoil();

    Slot5();

    Sleep(30);

    }

    }

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...