i like using memoria, just saying. try doing a nothing console command
try this->pushtoconsole ("Fragself 1");
and see if that works (should kill your self)
i made my very first hack tonight thanks to the stickied (and very thurough) tutorial
now i want to add to it, i have added somethings that i have seen here on forum but my problem is that whatever the first hack code is that's included in the void menu() { *code here* } is the only hack that works when i start the game (yes i am recompiling it after each edit, yes i am rebuilding it after each edit -.-")
here is the code below, maybe it has to do with how i set it up...
Code:#include <windows.h> bool IsGameReadyForHook() { if( GetModuleHandleA( "d3d9.dll" ) != NULL && GetModuleHandleA( "ClientFX.fxd" ) != NULL && GetModuleHandleA( "CShell.dll" ) != NULL ) return true; return false; } void __cdecl PushToConsole( const char* szCommand ) { DWORD *LTClient = ( DWORD* )(0x3778BFB0); void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 ); __asm { push szCommand; call CONoff; add esp, 4; } } void main() { while(true) { { PushToConsole("SkelModelStencil 1"); PushToConsole("PerturbRotationEffect 0.000000"); PushToConsole("PerturbIncreaseSpeed 0.000000"); PushToConsole("PerturbWalkPercent 0.000000"); PushToConsole("PerturbFiringIncreaseSpeed 0.006000"); } { bool walls = false; while(true) { if(GetAsyncKeyState(VK_NUMPAD0)<0){ walls = !walls; if(walls){ memcpy((LPVOID)0x57207A, "\x6A\x01", 2); } else { memcpy((LPVOID)0x57207A, "\x6A\x00", 2); } Sleep(300); } Sleep(10); } { bool recoil = false; while(true) { if(GetAsyncKeyState(VK_NUMPAD2)<0); recoil = !recoil; if(recoil){ memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3); memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3); memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3); memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3); memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3); } else { memcpy((LPVOID)0x3741A550, "\xD8\x66\x54", 3); memcpy((LPVOID)0x3740AA99, "\xD9\x46\x54", 3); memcpy((LPVOID)0x3741A564, "\xD9\x5E\x54", 3); memcpy((LPVOID)0x3741A567, "\xD9\x46\x48", 3); memcpy((LPVOID)0x3741A570, "\xD9\x5E\x48", 3); } Sleep(300); } Sleep(10); } { bool reload = false; while(true) { if(GetAsyncKeyState(VK_NUMPAD3)<0); reload = !reload; if(reload){ memcpy((LPVOID)0x37466264, "\x90\x90\x90\x90\x90\x90", 6); } else { memcpy((LPVOID)0x37466264, "\x0F\x84\xB1\x01\x00\x00", 6); } Sleep(300); } Sleep(10); } } } } void dwHackThread() { } DWORD WINAPI dwHackThread(LPVOID) { while ( !IsGameReadyForHook() ) Sleep(100); main(); return 0; } BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) { DisableThreadLibraryCalls(hDll); if ( dwReason == DLL_PROCESS_ATTACH ) { CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); } return TRUE; }
any help is greatly appreciated and you will be thanked! (also feel free to use any and/or all the code posted above, i can't say you can't...so do it if ya want lol)
i like using memoria, just saying. try doing a nothing console command
try this->pushtoconsole ("Fragself 1");
and see if that works (should kill your self)
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
lol...i'll try it but i wont like killin myself xD
its just a test to make sure your base works
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
tried it, i didn't die but the NX chams work, nothing else does though, and if you look at the code, NX Chams is the first set of code
i also didn't die
and as i just figured out. the glass walls hack DOES work also
[spoiler][/spoiler]
Last edited by supercarz1991; 07-10-2010 at 05:39 PM.
just do this
put this under void main
{
while(1)
{
//no gun
this->PushToConsole("DrawGuns 0");
}
//Draw Guns
if(GetAsyncKeyState(VK_RSHIFT)<0){
this->PushToConsole("DrawGuns 1");
}
}
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
nope, the only hacks working in my dll are Glass Walls, and Satillite chams...
Judging by the amount of syntax errors and major logic errors I would say you don't know C++.
I wouldn't advise making a hack or releasing one because there are already enough out by people who don't know C++ and because you need to learn so people don't need to help you.
Please don't post another question before you have actually learned the language.Code:void main() { bool walls = false, recoil = false, reload = false; while(true) { if(GetAsyncKeyState(VK_NUMPAD0)<0){ walls = !walls; if(walls){ memcpy((LPVOID)0x57207A, "\x6A\x01", 2); } else { memcpy((LPVOID)0x57207A, "\x6A\x00", 2); } Sleep(300); } if(GetAsyncKeyState(VK_NUMPAD2)<0){ recoil = !recoil; if(recoil){ memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3); memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3); memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3); memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3); memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3); } else { memcpy((LPVOID)0x3741A550, "\xD8\x66\x54", 3); memcpy((LPVOID)0x3740AA99, "\xD9\x46\x54", 3); memcpy((LPVOID)0x3741A564, "\xD9\x5E\x54", 3); memcpy((LPVOID)0x3741A567, "\xD9\x46\x48", 3); memcpy((LPVOID)0x3741A570, "\xD9\x5E\x48", 3); } Sleep(300); } if(GetAsyncKeyState(VK_NUMPAD3)<0){ reload = !reload; if(reload){ memcpy((LPVOID)0x37466264, "\x90\x90\x90\x90\x90\x90", 6); } else { memcpy((LPVOID)0x37466264, "\x0F\x84\xB1\x01\x00\x00", 6); } Sleep(300); } Sleep(10); } }
if you pm and add me on msn, i might help you out bro
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
i posted this here so i can learn to code...how else am i gonna learn if i don't ask questions?
seal, give em a break bro
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
thanks zman, at least i'm trying to learn instead of like the other guys that just sit and ask for free stuff xD
idc if you ask question so just pm or post em
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-
will do,
lol i'm messing with rez mods now though...the lil project i sent you was giving me a headache cuz i couldn't figure it out lol
i would NOT start with what you gave me. go small bro
Need Help With Coding or Something??? MSN me
zmansquared@hotmail.com
I am the one and only Microsoft Fag!!!
Quote:
Originally Posted by Arhk
All games should be hacked, if we don't do it someone else will. Hackers force the progress, of better programming methods.
~
Take this Pic everyone!
next-