❓ Weapon Source

Posts 1–5 of 5 · Page 1 of 1
❓ Weapon Source
Can anybody tell me what's wrong with my weapon hack source ?
Code:

Code:
            DWORD wM16 =  *(DWORD*)((*(DWORD*)(dw_Cshell+weaponMgr))+(25*4));                                
            DWORD wM4A1RD = *(DWORD*)((*(DWORD*)(dw_Cshell+weaponMgr)) + (282*4));		
            if (wephack)		
           {		
                (wM16) = (wM4A1RD);		
           }
its For CFPH I know its in the wrong section but there is no coders there.
Problem : m16 wont turn in to m4a1RD


---------- Post added at 07:45 PM ---------- Previous post was at 06:09 PM ----------

/BUMP
minions don't close this.
Problem not solved.
Still same problem.
Quote Originally Posted by Janitor View Post
Can anybody tell me what's wrong with my weapon hack source ?
Code:

Code:
            DWORD wM16 =  *(DWORD*)((*(DWORD*)(dw_Cshell+weaponMgr))+(25*4));                                
            DWORD wM4A1RD = *(DWORD*)((*(DWORD*)(dw_Cshell+weaponMgr)) + (282*4));		
            if (wephack)		
           {		
                (wM16) = (wM4A1RD);		
           }
its For CFPH I know its in the wrong section but there is no coders there.
Problem : m16 wont turn in to m4a1RD


---------- Post added at 07:45 PM ---------- Previous post was at 06:09 PM ----------

/BUMP
minions don't close this.
Problem not solved.
Still same problem.
It's easier to use just a function like this:

Code:
#define M16 25
#define M4Red 282
#define weaponPointer 0x??????
void weaponHack(int original, int new)
{
DWORD cshell = (DWORD)GetModuleHandle("cshell.dll");
DWORD weaponIndex = *(DWORD*)(cshell+weaponPointer);
memcpy((DWORD*)(weaponIndex+(original*4)),(DWORD*)(weaponIndex +(new*4)),4);
}

//somewhere in your code 
weaponHack(M16,M4Red);
I don't know if this works anymore because i haven't been doing anything in CF lately

btw congrats.
Code:
bool wephack = true;

 DWORD wM16 =  *(DWORD*)((*(DWORD*)(dw_Cshell+weaponMgr))+(25*4));                                
 DWORD wM4A1RD = *(DWORD*)((*(DWORD*)(dw_Cshell+weaponMgr)) + (282*4));		
            if (wephack)		
           {		
                (wM16) = (wM4A1RD);	
}

try this ^_^
also try this
Code:
#defined WepPointer 0x________
//GLOBAL
bool weaponhack = true;
if(weaponhack)
{
memcpy((DWORD*)(WepPointer+(original*4)),(DWORD*)(WepPointer+(new*4)),4);
}
Why don't you wait me on msn and i will team viewer you and help you
******

---------- Post added 08-20-2012 at 12:41 AM ---------- Previous post was 08-19-2012 at 10:52 PM ----------

Sloved close dis shit
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us