Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Battlefield 2 hacks cheats tutorials source code
You are Unregistered, please register to gain Full access.
When I compile I get these errors, and cant understand them.
Thanks!
Code:
1>c:\documents and settings\billy\my documents\visual studio 2008\projects\testnametags\testnametags\main.cpp(8) : error C2227: left of '->LocalPlayer' must point to class/struct/union/generic type
1> type is 'PDWORD'
1>c:\documents and settings\billy\my documents\visual studio 2008\projects\testnametags\testnametags\main.cpp(8) : error C3861: 'HookVTable': identifier not found
1>c:\documents and settings\billy\my documents\visual studio 2008\projects\testnametags\testnametags\main.cpp(36) : error C3861: '_ReturnAddress': identifier not found
1>c:\documents and settings\billy\my documents\visual studio 2008\projects\testnametags\testnametags\main.cpp(48) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [12]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
PS: Im looking for a tutorial of how to change crosshairs, such as reddot.
1>c:\documents and settings\billy\my documents\visual studio 2008\projects\testnmtags\testnmtags\main.cpp(10) : error C3861: 'HookVTableFunction': identifier not found
1>c:\documents and settings\billy\my documents\visual studio 2008\projects\testnmtags\testnmtags\main.cpp(39) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [12]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Now, I know im suppose to get playermanager class, but dont know how.
And the second error is probably because of that.
However, the first, I do not know why, probably a header.
well move that hookvtable function above ur int main ^^ ull fix the first error, for the rest u gotta look ur own sorry, cant really fix all ur errors, Playermanager class u can find publicly posted here at bf2 section or download some bf2 source and get it, or reclass the class
Ok, thanks. I have fixed all errors, except I havent gotten a playermanager class. Ill look for that, and get back to you. If you by any chance would know where, please tell me.
[Auto Merged - 1:06:12 UTC]
It seems that I cannot find the code to get the playermanager class code. So close, but yet so far. Is there anyone who can help?
Mate, you have used my code without following the actual tutorial and then just tried to use some offsets you found on this forum.
You clearly do not understand what you are doing with the code or you could fix the error, in fact if you just read my tut rather than skipped it and just got the code, you could fix it. For instance:
Yay! Infact I do know that offset will not work. I was putting that towards the end of the development. I was going to use the offsets Haxing4Life provided.
~Dont be a dick, just trying to learn. We all started somewhere.
Yay! Infact I do know that offset will not work. I was putting that towards the end of the development. I was going to use the offsets Haxing4Life provided.
~Dont be a dick, just trying to learn. We all started somewhere.
Nor can you use the offset provided my Haxing4Life because if you had read my tutorial you would know that the address used as the return address is not the same as the NameTags Jump!
I'm not being a dick, i just dislike people that come here, post code they say they put together when they clearly did not, and just write rubbish. You even had a tutorial. You can't start without understanding it 100% and going through the tut step by step before rushing to the code at the end.
I'm all up for helping people and want people to learn, i wrote a TUT for goodness sake, just take a step back and learn it before you make a thread about it when you are not ready to.
It is PlayerManager->LocalPlayer because the real GetTeam Function Resides in the Player Class not the Player Manager Class. In my Player Manager class i have:
Code:
CPlayer* LocalPlayer
It could be called anything you want.
The way it works it that it intercepts the games GetTeam Check and gives an incorrect answer based on the return address.
You only apply the hook once as you said, once hooked it aint going to change unless you unhook it.
I think you are learning the wrong way.
It's also wrong to call the "higher leveled" people a dick, because they only want to try to help you and make you learn.
You should listen to what people say. Go learn c++ and some basic debugging. If you've done that, you can come back any time. Knowledge is very welcome here.
Ive seen my wrong ways, and apoligize. Perhaps I should start over with something smaller.
I have searched the forums and internet for a tutorial on how to change the crosshair.
I have found nothing, so in light of that, i created a program to draw over bf2, but as expected if flickers. Does anyone know of a tutorial to change crosshairs?
Search up DMA Hack tutorials/source. I used DMA hacks for years and it was more than enough.
This is a very good place to start imo.
For example, crosshair DMA address (I believe) is [(0xB38400 + 0x130 ) + 0xA0] so you'd overwite this with your own values, such as 0x35 for "red dot".