[Request] Nametaghack.asi modified

Status
Not open for further replies.
Joined
Jul 31, 2013
Messages
11
Reaction score
0
Hello guys,

i already tried the nametaghack.asi, it's great, but i have a little problem:
admins on ur server check, wether we've got the hack or not, we have to do screenshots etc..
once u have activated it with alt+f3 and deactivated it, the range of the names is still too far.

my question: is it possible to change the range when its deactivated ? or is it possible to deactivate it completely ?
i got this:
[spoiler:1wl24sqh]#include <windows.h>

#define SAMP_INFO 0x212A38
#define SAMP_SETTINGS 0x3CF

//DWORD* pChat = NULL;
DWORD* pInfo = NULL;
BYTE* ThroughWalls = NULL;
BYTE* ShowNameTags = NULL;
float* fDistance = NULL;
//---------------------------------------------------------------------------
bool KeyPressed(BYTE key)
{
return ((GetAsyncKeyState(key)&(1<<16))!=0);
}
//---------------------------------------------------------------------------

void Thread()
{
DWORD SampDLL = (DWORD)GetModuleHandleA("samp.dll");
if(SampDLL){
pInfo = (DWORD*)(SampDLL+SAMP_INFO);
while(*pInfo==0) Sleep(1000);
while(*(DWORD*)(*pInfo+SAMP_SETTINGS)==0) Sleep(1000);
ShowNameTags = (BYTE*)(*(DWORD*)(*pInfo+SAMP_SETTINGS)+0xE);
ThroughWalls = (BYTE*)(*(DWORD*)(*pInfo+SAMP_SETTINGS)+0x5);
fDistance = (float*)((DWORD*)(*(DWORD*)(*pInfo+SAMP_SETTINGS)+0x2F));
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; <-----Maybe change this ?
do{
Sleep(100);
}while(!KeyPressed(VK_MENU) || !KeyPressed(VK_F3));
do{
Sleep(50);
}while(KeyPressed(VK_F3));
*ShowNameTags = 1;
*ThroughWalls = 1;
*fDistance = 50.0; <----- Or change this ?
}
}
}

//-------------------------------------------------------------------------------
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)Thread, 0, 0, 0);
}
return 1;
}[/spoiler:1wl24sqh]

and how is it possible to compile it to an .asi file ?



downloadlink with files: main.cpp, wh03x.asi, wh03x.sln, wh03x.vcxproj, wh03x.filters, wh03x.user
http://www.file-upload.net/download-7908165/nametaghack.rar.html

Author of the hack:Freeman
 
Status
Not open for further replies.
Top