Wallhack-asi

maxi313

New member
Joined
Apr 22, 2022
Messages
3
Reaction score
1
hi, I have esp file. However, there is a silent aim in the file. I just need an esp. Can you delete other cheats except esp for this?
 

Attachments

  • eren.asi
    182.5 KB · Views: 77

n1Ki

Active member
Joined
Feb 10, 2020
Messages
50
Reaction score
5
Location
Serbia
if the wallhack is for 0.3dl version then download samp for that version, if wallhack its for 0.3.7 download samp 0.3.7
 

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
ALT + F3
PHP:
#include <windows.h>

#define SAMP_0_3_7 1
#define SAMP_0_3_DL 2
#define SAMP_VERSION SAMP_0_3_7

/* 0.3.7-R1 */
#if SAMP_VERSION == SAMP_0_3_7
#define SAMP_INFO_OFFSET 0x21A0F8
#define SAMP_pSettings 0x3CD
#define SAMP_fNameTagsDistance 0x27
#define SAMP_byteNoNametagsBehindWalls 0x2F
#define SAMP_byteShowNameTags 0x38
#endif
/* 0.3.DL-R1 */
#if SAMP_VERSION == SAMP_0_3_DL
#define SAMP_INFO_OFFSET 0x2ACA24
#define SAMP_pSettings 0x3D5
#define SAMP_fNameTagsDistance 0x27
#define SAMP_byteNoNametagsBehindWalls 0x2F
#define SAMP_byteShowNameTags 0x38
#endif

DWORD *pInfo = NULL;
BYTE *ThroughWalls = NULL;
BYTE *ShowNameTags = NULL;
float *fDistance = NULL;

bool KeyPressed(BYTE key)
{
    return ((GetAsyncKeyState(key)&(1<<16))!=0);
}

void WallHack()
{
    DWORD SampDLL = (DWORD)GetModuleHandleA("samp.dll");
    if (SampDLL)
    {
        pInfo = (DWORD*)(SampDLL + SAMP_INFO_OFFSET);
        while (*pInfo == 0) Sleep(1000);
        while (*(DWORD*)(*pInfo + SAMP_pSettings) == 0) Sleep(1000);
        fDistance = (float*)((DWORD*)(*(DWORD*)(*pInfo + SAMP_pSettings) + SAMP_fNameTagsDistance));
        ThroughWalls = (BYTE*)(*(DWORD*)(*pInfo + SAMP_pSettings) + SAMP_byteNoNametagsBehindWalls);
        ShowNameTags = (BYTE*)(*(DWORD*)(*pInfo + SAMP_pSettings) + SAMP_byteShowNameTags);
        Sleep(14000);
        DWORD OldProt;
        VirtualProtect((LPVOID)ShowNameTags, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
        VirtualProtect((LPVOID)ThroughWalls, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
        VirtualProtect((LPVOID)fDistance, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
        VirtualProtect((LPVOID)SampDLL, 0x3071B0, PAGE_EXECUTE_READWRITE, &OldProt);
        for (;;)
        {
            do Sleep(100);
            while (!KeyPressed(VK_MENU) || !KeyPressed(VK_F3));
            do Sleep(50);
            while (KeyPressed(VK_F3));
            *ShowNameTags = 1;
            *ThroughWalls = 0;
            *fDistance = 1500.0;
            do Sleep(100);
            while (!KeyPressed(VK_MENU) || !KeyPressed(VK_F3));
            do Sleep(50);
            while (KeyPressed(VK_F3));
            *ShowNameTags = 1;
            *ThroughWalls = 1;
            *fDistance = 50.0;
        }
    }
}

int WINAPI DllMain(HINSTANCE hinst, unsigned long reason, void* lpReserved)
{
    if (reason == DLL_PROCESS_ATTACH)
    {
         DWORD OldProt;
         VirtualProtect((LPVOID)0x401000, 0x4A3000, PAGE_EXECUTE_READWRITE, &OldProt);
         CreateThread(0, 0, (LPTHREAD_START_ROUTINE)WallHack, 0, 0, 0);
    }
    return true;
}
 

Attachments

  • 0.3.7_WallHack.asi
    73.5 KB · Views: 67
  • 0.3.DL_WallHack.asi
    73.5 KB · Views: 82

n1Ki

Active member
Joined
Feb 10, 2020
Messages
50
Reaction score
5
Location
Serbia
ALT + F3
PHP:
#include <windows.h>

#define SAMP_0_3_7 1
#define SAMP_0_3_DL 2
#define SAMP_VERSION SAMP_0_3_7

/* 0.3.7-R1 */
#if SAMP_VERSION == SAMP_0_3_7
#define SAMP_INFO_OFFSET 0x21A0F8
#define SAMP_pSettings 0x3CD
#define SAMP_fNameTagsDistance 0x27
#define SAMP_byteNoNametagsBehindWalls 0x2F
#define SAMP_byteShowNameTags 0x38
#endif
/* 0.3.DL-R1 */
#if SAMP_VERSION == SAMP_0_3_DL
#define SAMP_INFO_OFFSET 0x2ACA24
#define SAMP_pSettings 0x3D5
#define SAMP_fNameTagsDistance 0x27
#define SAMP_byteNoNametagsBehindWalls 0x2F
#define SAMP_byteShowNameTags 0x38
#endif

DWORD *pInfo = NULL;
BYTE *ThroughWalls = NULL;
BYTE *ShowNameTags = NULL;
float *fDistance = NULL;

bool KeyPressed(BYTE key)
{
    return ((GetAsyncKeyState(key)&(1<<16))!=0);
}

void WallHack()
{
    DWORD SampDLL = (DWORD)GetModuleHandleA("samp.dll");
    if (SampDLL)
    {
        pInfo = (DWORD*)(SampDLL + SAMP_INFO_OFFSET);
        while (*pInfo == 0) Sleep(1000);
        while (*(DWORD*)(*pInfo + SAMP_pSettings) == 0) Sleep(1000);
        fDistance = (float*)((DWORD*)(*(DWORD*)(*pInfo + SAMP_pSettings) + SAMP_fNameTagsDistance));
        ThroughWalls = (BYTE*)(*(DWORD*)(*pInfo + SAMP_pSettings) + SAMP_byteNoNametagsBehindWalls);
        ShowNameTags = (BYTE*)(*(DWORD*)(*pInfo + SAMP_pSettings) + SAMP_byteShowNameTags);
        Sleep(14000);
        DWORD OldProt;
        VirtualProtect((LPVOID)ShowNameTags, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
        VirtualProtect((LPVOID)ThroughWalls, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
        VirtualProtect((LPVOID)fDistance, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
        VirtualProtect((LPVOID)SampDLL, 0x3071B0, PAGE_EXECUTE_READWRITE, &OldProt);
        for (;;)
        {
            do Sleep(100);
            while (!KeyPressed(VK_MENU) || !KeyPressed(VK_F3));
            do Sleep(50);
            while (KeyPressed(VK_F3));
            *ShowNameTags = 1;
            *ThroughWalls = 0;
            *fDistance = 1500.0;
            do Sleep(100);
            while (!KeyPressed(VK_MENU) || !KeyPressed(VK_F3));
            do Sleep(50);
            while (KeyPressed(VK_F3));
            *ShowNameTags = 1;
            *ThroughWalls = 1;
            *fDistance = 50.0;
        }
    }
}

int WINAPI DllMain(HINSTANCE hinst, unsigned long reason, void* lpReserved)
{
    if (reason == DLL_PROCESS_ATTACH)
    {
         DWORD OldProt;
         VirtualProtect((LPVOID)0x401000, 0x4A3000, PAGE_EXECUTE_READWRITE, &OldProt);
         CreateThread(0, 0, (LPTHREAD_START_ROUTINE)WallHack, 0, 0, 0);
    }
    return true;
}
dm
 

Zyt

New member
Joined
Nov 18, 2021
Messages
3
Reaction score
0
Location
Vietnam
ALT + F3
PHP:
#include <windows.h>

#define SAMP_0_3_7 1
#define SAMP_0_3_DL 2
#define SAMP_VERSION SAMP_0_3_7

/* 0.3.7-R1 */
#if SAMP_VERSION == SAMP_0_3_7
#define SAMP_INFO_OFFSET 0x21A0F8
#define SAMP_pSettings 0x3CD
#define SAMP_fNameTagsDistance 0x27
#define SAMP_byteNoNametagsBehindWalls 0x2F
#define SAMP_byteShowNameTags 0x38
#endif
/* 0.3.DL-R1 */
#if SAMP_VERSION == SAMP_0_3_DL
#define SAMP_INFO_OFFSET 0x2ACA24
#define SAMP_pSettings 0x3D5
#define SAMP_fNameTagsDistance 0x27
#define SAMP_byteNoNametagsBehindWalls 0x2F
#define SAMP_byteShowNameTags 0x38
#endif

DWORD *pInfo = NULL;
BYTE *ThroughWalls = NULL;
BYTE *ShowNameTags = NULL;
float *fDistance = NULL;

bool KeyPressed(BYTE key)
{
    return ((GetAsyncKeyState(key)&(1<<16))!=0);
}

void WallHack()
{
    DWORD SampDLL = (DWORD)GetModuleHandleA("samp.dll");
    if (SampDLL)
    {
        pInfo = (DWORD*)(SampDLL + SAMP_INFO_OFFSET);
        while (*pInfo == 0) Sleep(1000);
        while (*(DWORD*)(*pInfo + SAMP_pSettings) == 0) Sleep(1000);
        fDistance = (float*)((DWORD*)(*(DWORD*)(*pInfo + SAMP_pSettings) + SAMP_fNameTagsDistance));
        ThroughWalls = (BYTE*)(*(DWORD*)(*pInfo + SAMP_pSettings) + SAMP_byteNoNametagsBehindWalls);
        ShowNameTags = (BYTE*)(*(DWORD*)(*pInfo + SAMP_pSettings) + SAMP_byteShowNameTags);
        Sleep(14000);
        DWORD OldProt;
        VirtualProtect((LPVOID)ShowNameTags, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
        VirtualProtect((LPVOID)ThroughWalls, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
        VirtualProtect((LPVOID)fDistance, 0x100, PAGE_EXECUTE_READWRITE, &OldProt);
        VirtualProtect((LPVOID)SampDLL, 0x3071B0, PAGE_EXECUTE_READWRITE, &OldProt);
        for (;;)
        {
            do Sleep(100);
            while (!KeyPressed(VK_MENU) || !KeyPressed(VK_F3));
            do Sleep(50);
            while (KeyPressed(VK_F3));
            *ShowNameTags = 1;
            *ThroughWalls = 0;
            *fDistance = 1500.0;
            do Sleep(100);
            while (!KeyPressed(VK_MENU) || !KeyPressed(VK_F3));
            do Sleep(50);
            while (KeyPressed(VK_F3));
            *ShowNameTags = 1;
            *ThroughWalls = 1;
            *fDistance = 50.0;
        }
    }
}

int WINAPI DllMain(HINSTANCE hinst, unsigned long reason, void* lpReserved)
{
    if (reason == DLL_PROCESS_ATTACH)
    {
         DWORD OldProt;
         VirtualProtect((LPVOID)0x401000, 0x4A3000, PAGE_EXECUTE_READWRITE, &OldProt);
         CreateThread(0, 0, (LPTHREAD_START_ROUTINE)WallHack, 0, 0, 0);
    }
    return true;
}

not working
 

dphome

Well-known member
Joined
Mar 21, 2020
Messages
475
Solutions
9
Reaction score
168
Location
Poland
yeah, right - my mistake.
#define SAMP_pSettings 0x3C5 - for 0.3.7-R1
 

Attachments

  • 0.3.7_WallHack.asi
    73.5 KB · Views: 71
Top