Home Forum MultiPlayer Game Hacks & Cheats CrossFire Hacks & Cheats CrossFire Hack Coding / Programming / Source Code Scope Hack Scope HackPosts 1–15 of 44 · Page 1 of 3
Scope Hack
Code:
//=== Zoom Adder ===
void Zoom(int weaponid){
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(pWeaponMgr != NULL){
DWORD Weapon = (*(DWORD*)( pWeaponMgr + (4*weaponid)) );
if(Weapon != NULL){
*(int*)(Weapon + 0xAF0) = 0x2;
*(int*)(Weapon + 0xAF4) = 2;
*(int*)(Weapon + (0x3948)) = 2; // Amount Of Scope Lvl(s)
*(float*)(Weapon + (0x3948+ 4)) = 500.0f;
*(float*)(Weapon + (0x3948+ 8)) = 500.0f;
*(float*)(Weapon + 0x3920+ 0*4) = 1; // Normal x1
*(float*)(Weapon + 0x3920+ 1*4) = 2; // x2
}
}
}
Credits :
idk to who should i give credits but i think @
giniyat101 For Explaining & @
I2espect @
kmanev073 is the official investor of the scope hack...
For the really good explain
Originally Posted by
I2espect
Code:
//=== Zoom Adder ===
void Zoom(int weaponid){
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(pWeaponMgr != NULL){
DWORD Weapon = (*(DWORD*)( pWeaponMgr + (4*weaponid)) );
if(Weapon != NULL){
*(int*)(Weapon + 0xAF0) = 0x2;
*(int*)(Weapon + 0xAF4) = 2;
*(int*)(Weapon + (0x3948)) = 2; // Amount Of Scope Lvl(s)
*(float*)(Weapon + (0x3948+ 4)) = 500.0f;
*(float*)(Weapon + (0x3948+ 8)) = 500.0f;
*(float*)(Weapon + 0x3920+ 0*4) = 1; // Normal x1
*(float*)(Weapon + 0x3920+ 1*4) = 2; // x2
}
}
}
Credits :
idk to who should i give credits but i think @
giniyat101 For Explaining & @
I2espect
For the really good explain
Kmanev073 is the official investor of the scope hack...
Originally Posted by
rabir007
Kmanev073 is the official investor of the scope hack...
#Added ! @
sobasoba13 the value explain its self
weaponid like i and y ?
@
I2espect go on skype
Please
Originally Posted by
sobasoba13
u should know how to fix it !!
call the function once !!! not in while(1)
Originally Posted by
I2espect
u should know how to fix it !!
call the function once !!! not in while(1)
i putted it in the main thread with out the void(int weaponid) and putted int weaponid in the code as any int
Try to use it with a call like
Code:
//Weapons loop
if(Weapon){
Zoom(i);
}
i have got a headache i will you a new thread
Code:
void Zoom(int weaponid)
{
DWORD CShell = (DWORD)GetModuleHandleA(ModuleCShell);
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(pWeaponMgr != NULL)
{
DWORD Weapon = (*(DWORD*)( pWeaponMgr + (4*weaponid) );
if(Weapon != NULL)
{
*(int* )(Weapon + 0xAF0 ) = 0x2;
*(int* )(Weapon + 0xAF4 ) = 2;
*(int* )(Weapon + (0x3948 )) = 4; // Amount Of Scope Lvl(s)
*(float*)(Weapon + (0x3948+ 4 )) = 500.0f;
*(float*)(Weapon + (0x3948+ 8 )) = 500.0f;
*(float*)(Weapon + 0x3920+ 0*4) = 1; // Normal x1
*(float*)(Weapon + 0x3920+ 1*4) = 3; // x2
}
}
}
then call it in DLLMain
Code:
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Zoom, hinstDLL, NULL, NULL);
Originally Posted by
sobasoba13
i have got a headache i will you a new thread
Code:
void Zoom(int weaponid)
{
DWORD CShell = (DWORD)GetModuleHandleA(ModuleCShell);
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(pWeaponMgr != NULL)
{
DWORD Weapon = (*(DWORD*)( pWeaponMgr + (4*weaponid) );
if(Weapon != NULL)
{
*(int* )(Weapon + 0xAF0 ) = 0x2;
*(int* )(Weapon + 0xAF4 ) = 2;
*(int* )(Weapon + (0x3948 )) = 4; // Amount Of Scope Lvl(s)
*(float*)(Weapon + (0x3948+ 4 )) = 500.0f;
*(float*)(Weapon + (0x3948+ 8 )) = 500.0f;
*(float*)(Weapon + 0x3920+ 0*4) = 1; // Normal x1
*(float*)(Weapon + 0x3920+ 1*4) = 3; // x2
}
}
}
then call it in DLLMain
Code:
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Zoom, hinstDLL, NULL, NULL);
lol wtf are u doing
!?
Originally Posted by
I2espect
lol wtf are u doing
!?
ana sa7y 5:30 am xD
Originally Posted by
sobasoba13
ana sa7y 5:30 am xD
Code:
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Troll, hinstDLL, NULL, NULL);
void Troll()
{
for (int i = 0; i <999; i++) Zoom(i);
}
void Zoom(int weaponid)
{
DWORD CShell = (DWORD)GetModuleHandleA(ModuleCShell);
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(pWeaponMgr != NULL)
{
DWORD Weapon = (*(DWORD*)( pWeaponMgr + (4*weaponid) );
if(Weapon != NULL)
{
*(int* )(Weapon + 0xAF0 ) = 0x2;
*(int* )(Weapon + 0xAF4 ) = 2;
*(int* )(Weapon + (0x3948 )) = 4; // Amount Of Scope Lvl(s)
*(float*)(Weapon + (0x3948+ 4 )) = 500.0f;
*(float*)(Weapon + (0x3948+ 8 )) = 500.0f;
*(float*)(Weapon + 0x3920+ 0*4) = 1; // Normal x1
*(float*)(Weapon + 0x3920+ 1*4) = 3; // x2
}
}
}
Everyone would know how to fix it...
Originally Posted by
rabir007
Code:
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Troll, hinstDLL, NULL, NULL);
void Troll()
{
for (int i = 0; i <999; i++) Zoom(i);
}
void Zoom(int weaponid)
{
DWORD CShell = (DWORD)GetModuleHandleA(ModuleCShell);
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
if(pWeaponMgr != NULL)
{
DWORD Weapon = (*(DWORD*)( pWeaponMgr + (4*weaponid) );
if(Weapon != NULL)
{
*(int* )(Weapon + 0xAF0 ) = 0x2;
*(int* )(Weapon + 0xAF4 ) = 2;
*(int* )(Weapon + (0x3948 )) = 4; // Amount Of Scope Lvl(s)
*(float*)(Weapon + (0x3948+ 4 )) = 500.0f;
*(float*)(Weapon + (0x3948+ 8 )) = 500.0f;
*(float*)(Weapon + 0x3920+ 0*4) = 1; // Normal x1
*(float*)(Weapon + 0x3920+ 1*4) = 3; // x2
}
}
}
Everyone would know how to fix it...
i waked up 19 hrs ago xD
@
I2espect open skype ! =/
@sobasoba13 Just put in your project brother..
Code:
DWORD CShell = (DWORD)GetModuleHandleA(ModuleCShell);
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr); //0x108713C
for(int i=0; i<1000; i++)
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i))) != NULL)
{
DWORD Zoom = *(DWORD*)(pWeaponMgr + (4*i));
for(int y=0; y<9; y++)
{
*(int*)(Zoom + 0xAF0) = 0x2;
*(int*)(Zoom + 0xAF4) = 2;
*(int*)(Zoom + (0x3948)) = 2; // Amount Of Scope Lvl(s)
*(float*)(Zoom + (0x3948+ 4)) = 500.0f;
*(float*)(Zoom + (0x3948+ 8)) = 500.0f;
*(float*)(Zoom + 0x3920+ 0*4) = 1; // Normal x1
*(float*)(Zoom + 0x3920+ 1*4) = 2; // x2
Posts 1–15 of 44 · Page 1 of 3
This thread is closed for replies.