this is some of no grenade damage.Code:if (NoReload) { for (int i = 0; i < 445; i++) { *(float*)( (*(DWORD*)((*(DWORD*)(dwCShell+0x30845C))+(4*i))) + 0x07F8) = 0.0f; }
Hey guys, whenever i put my D3d Base together i get an error message! This is my Base completed please do not copy the base!
The error message is this:#include <windows.h>
#include <iostream>
using namespace std;
DWORD CShellBase = (DWORD)GetModuleHandleA("CShell.dll");
void main() {
Sleep(1000);
}
DWORD WINAPI Main(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(150);
}
bool onehitkill = true;
bool NoReload = true;
if(onehitkill){
for(int i=0 ; i<445 ; i++){
*(float*)( (*(DWORD*)((*(DWORD*)(dwCShell+0x30845C))+(4*i))) + 0x07F8) = (float)999999999;
}
}
if (NoReload)
{
for (int i = 0; i < 445; i++)
{
*(float*)( (*(DWORD*)((*(DWORD*)(dwCShell+0x30845C))+(4*i))) + 0x07F8) = 0.0f;
}
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH ) {
MessageBoxA(0, "SmartGold **HACKER** Hack.", "CrossFire Hack Z8games", 0);
}
return true;
}
HELP ME PLEASE!1>------ Build started: Project: SmartGold Pub v1, Configuration: Debug Win32 ------
1>LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
1>C:\Users\samuel\Documents\Visual Studio 2010\Projects\SmartGold Pub v1\Debug\SmartGold Pub v1.dll : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
this is some of no grenade damage.Code:if (NoReload) { for (int i = 0; i < 445; i++) { *(float*)( (*(DWORD*)((*(DWORD*)(dwCShell+0x30845C))+(4*i))) + 0x07F8) = 0.0f; }
Still love you Giggletron
I took that out and my code is this:
Im still getting the same error!#include <windows.h>
#include <iostream>
using namespace std;
DWORD CShellBase = (DWORD)GetModuleHandleA("CShell.dll");
void main() {
Sleep(1000);
}
DWORD WINAPI Hacks(LPVOID)
{
bool oneshot = false;
while(1)
{
DWORD CShellBase = (DWORD)GetModuleHandleA("CShell.dll");
if(oneshot)
{
for(int i=0 ; i<445 ; i++)
{
*(float*)( (*(DWORD*)((*(DWORD*)(CShellBase + UPDATE ))+(4*i))) + 0x7F8) = FLT_MAX ;
}
}
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH ) {
MessageBoxA(0, "Sucessfully Injected!", "Created by SmartGold!", 0);
}
return true;
}
wait i know what ur doing wrong i will tell u in a min
Where do you see D3D in that ===
man this not D3D their not even one D3D function there
there still is no d3d in it
Still love you Giggletron
where is D3D?
I dont see any D3D function...
Im not proffessional but there isnt for sure D3D functions...like:
D3DCreateDevice or like that i've heard...
Why are you looking here?
No d3d. So how is this a d3d problem?
It's not an D3D base.
The D3D base should look like this:
It's a bit diffrent, because changed the source.Code:sFPS[20]="xxx fps"; int CH_cheats = 1; int CH_weap = 1; int Onehitkill = 0; int No-reload = 1; // none standard options char *sStamina[] = { "Off","Stealth","Full" }; void RebuildMenu(void) { strcpy(Mtitle,"== D3Dmenu by Victoria =="); MenuAddItem("[cheats]", Moptfolder, &CH_cheats, 2, MENUFOLDER); if (CH_cheats) { MenuAddItem("Stamina" , sStamina , &CH_stamina , 3, MENUITEM); MenuAddItem("Fast ammo" , Moptonoff , &CH_fastammo , 2, MENUITEM); MenuAddItem("Fast health" , Moptonoff , &CH_fasthealth, 2, MENUITEM); MenuAddItem("Fast repair" , Moptonoff , &CH_fastrepair, 2, MENUITEM); MenuAddItem("Fast flag" , Moptonoff , &CH_fastflag , 2, MENUITEM); } MenuAddItem("[Weapons]", Moptfolder, &CH_weap, 2, MENUFOLDER); if (CH_weap) { MenuAddItem("No spread" , Moptonoff , &CH_nospread, 2, MENUITEM); MenuAddItem("No recoil" , Moptonoff , &CH_norecoil, 2, MENUITEM); MenuAddItem("Unlimited ammo", Moptonoff , &CH_unlammo , 2, MENUITEM); } MenuAddItem("Framerate" , (char **)sFPS , 0,0,MENUTEXT);
I gonna make soon a tested and working menu base.
The Source, is for warrock, but you can change the name's and functions.
~Donater since 19th October 2011~
~Ex-Crossfire Minion || Resigned on 4th February 2012 ~Da fuck
Guys... I cannot believe no one has pointed this out yet O.o He never creates a thread (the Main function) What you need to do is this:
I will leave it up to you where to put it, but here's a hint:Code:CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
Now I am not sure if that is where your error comes from, but make sure to create the hack thread!Code:BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) { DisableThreadLibraryCalls(hDll); if ( dwReason == DLL_PROCESS_ATTACH ) { MessageBoxA(0, "SmartGold **HACKER** Hack.", "CrossFire Hack Z8games", 0); } return true; }
EDIT: I also just noticed that in your original post, you are editing the same offset for 1 hit kill and no reload. So you are setting it to 9999999999999999.0f (or whatever) and then you are setting the same thing to 0.0f
Last edited by shamwow100; 03-23-2011 at 07:04 PM.