Hi Guys we appreciate this if some gives me a hint or fixing this codes of bypass
if i use vip hack like ak47 blue crystal to iron beast i did not receive error but when i switch in knife or pistol i got client 28_3 so please help me
Code:
typedef struct MyWeapons
{
public:
	__int16 WeaponIndex;
}WeaponMgrCopy;

WeaponMgrCopy *pOldWeapons[2647];

void CreateBackup(DWORD dwCShell, DWORD dwWeaponMgr)
{
	DWORD pWeaponMgr = *(DWORD*)(dwCShell + dwWeaponMgr);
	if(pWeaponMgr !=NULL)
	{
		for (int i = 0; i < 2647; i++)
		{
			DWORD dwWeapon = *(DWORD*)(pWeaponMgr + (4 * i));
			if (dwWeapon !=NULL)
			{
				pOldWeapons[i] = (WeaponMgrCopy*)(dwWeapon);
				if (pOldWeapons[i]->WeaponIndex == i)continue;
				//================Client 28_4===============//
				pOldWeapons[i] = new WeaponMgrCopy;
				memcpy(reinterpret_cast<void*>(pOldWeapons[i]), reinterpret_cast<void*>(dwWeapon), sizeof(WeaponMgrCopy));
			}
		}
	}
}

WeaponMgrCopy* GetWeaponByIndex(int GunIndex)
{
	return pOldWeapons[GunIndex];
}

void IsMyBypass()
{
	if (!IsGameReadyForHook()) return;
	DWORD crossfire = (DWORD)GetModuleHandleA(eCF);
	if (crossfire == NULL) return;
	if (!isbackup)
	{
		DWORD CShell = (DWORD)GetModuleHandleA(eCShell);
		if (CShell != NULL)
		{
			CreateBackup(CShell, 0x16DDED8);
			DWORD dwBypassWeaponHack = (DWORD)(CShell + 0x6E8035);
			VirtualProtect(reinterpret_cast<void*>(dwBypassWeaponHack + 0x1), sizeof(DWORD), PAGE_EXECUTE_READWRITE, &dwOldProtect);
			*(DWORD*)(dwBypassWeaponHack + 0x1) = (DWORD)GetWeaponByIndex - dwBypassWeaponHack - 5;
			VirtualProtect(reinterpret_cast<void*>(dwBypassWeaponHack + 0x1), sizeof(DWORD), dwOldProtect, NULL);