its simple
instead of :
do this:Code:DWORD* pM16 = (DWORD*)(pWeaponMgr+25*4); DWORD* pM4A1 = (DWORD*)(pWeaponMgr+14*4); //not even sure if M4A1 id is 14 lol
and here is FindWeaponID function:Code:if (!pM16) pM16 = (DWORD*)(pWeaponMgr+FindWeaponID(pWeaponMgr, "M16" )*4); if (!pM4A1) pM4A1 = (DWORD*)(pWeaponMgr+FindWeaponID(pWeaponMgr, "M4A1")*4);
Code:DWORD FindWeaponID(DWORD pWeaponMgr, LPCSTR lpWepName) { for (int i=0; i<=999; i++) // i dont want to increase it to 1000 lol { DWORD pWeapon = *(DWORD*)(pWeaponMgr+i*4) if (pWeapon) { LPCSTR lpName = (LPCSTR)(pWeapon+8); if (!strcmp(lpName, lpWepName)) return i; } } return 0; }
[img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]
lol for me it get error in c++ can you explain more??
wtf DLL_THREAD_ATTACH + DLL_PROCESS_ATTACH and DLL_PROCESS_DETACH + DLL_THREAD_DETACH
[img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]
Nice one , but i already made something like this
Need Any Help in C++/CrossFire? Just Pm me.
My FB : Www.FaceBook.com/FaDiAtefAhlawy
My Yahoo : Dodo_CrazyChat@yahoo.com
My Hotmail : Dodo_CrazyChat@hotmail.com
Stay ontopic guys. Nice idea, is way more efficient and saves alot of time!
giniyat101 (05-01-2012)