[Help] GunZ Protect - Anti Lead

Results 1 to 18 of 18
  1. #1
    Enthusiast gabrielranks is offline
    MemberRank
    Jul 2011 Join Date
    33Posts

    [Help] GunZ Protect - Anti Lead

    Hi guys

    My Ant lead sourcer have erro of the packets

    in one hit you have disconnect have how to fix ?

    Antlead.h

    Code:
    CDetour ZGameClient__OnCommandDet;
    CDetour ZCharacter__OnDamagedDetour;
    CDetour ZMyCharacter__OnDamagedDetour;
    const int PacketResponses[] = { 0x12F, 0x51B, 0x516, 0x517,  0x3F9, 0x5A2};
    
    
    CDetour MAddSharedCommandTableDet;
    void MAddSharedCommandTableHook (MCommandManager* pCommandManager, int nSharedType)
    {
    	auto shotPacket = new MCommandDesc(0x3F9, "", "", 1);
    
    	shotPacket->AddParamDesc(new MCommandParameterDesc(MPT_INT, ""));
    	shotPacket->AddParamDesc(new MCommandParameterDesc(MPT_FLOAT, ""));
    	shotPacket->AddParamDesc(new MCommandParameterDesc(MPT_FLOAT, ""));
    	shotPacket->AddParamDesc(new MCommandParameterDesc(MPT_FLOAT, ""));
    	shotPacket->AddParamDesc(new MCommandParameterDesc(MPT_INT, ""));
    	shotPacket->AddParamDesc(new MCommandParameterDesc(MPT_INT, ""));
    	shotPacket->AddParamDesc(new MCommandParameterDesc(MPT_FLOAT, ""));
    	shotPacket->AddParamDesc(new MCommandParameterDesc(MPT_FLOAT, ""));
    	shotPacket->AddParamDesc(new MCommandParameterDesc(MPT_INT, ""));
    	shotPacket->AddParamDesc(new MCommandParameterDesc(MPT_INT, ""));
    
    	pCommandManager->AddCommandDesc(shotPacket);
    
    	//! Ban Request
    	{
    		MCommandDesc* pBanDesc = new MCommandDesc(0x1337, "", "", 1);
    		pBanDesc->AddParamDesc(new MCommandParameterDesc(MPT_STRING, ""));
    		pBanDesc->AddParamDesc(new MCommandParameterDesc(MPT_STRING, ""));
    		pCommandManager->AddCommandDesc(pBanDesc);
    	}
    
    	//! DC Request
    	{
    		MCommandDesc* pDCDesc = new MCommandDesc(0x1338, "", "", 1);
    		pDCDesc->AddParamDesc(new MCommandParameterDesc(MPT_STRING, ""));
    		pDCDesc->AddParamDesc(new MCommandParameterDesc(MPT_STRING, ""));
    		pCommandManager->AddCommandDesc(pDCDesc);
    	}
    
    	//! Mute Request
    	{
    		MCommandDesc* pMuteDesc = new MCommandDesc(0x1339, "", "", 1);
    		pMuteDesc->AddParamDesc(new MCommandParameterDesc(MPT_STRING, ""));
    		pMuteDesc->AddParamDesc(new MCommandParameterDesc(MPT_STRING, ""));
    		pCommandManager->AddCommandDesc(pMuteDesc);
    	}
    
    	{
    		MCommandDesc* pAutoBanDesc = new MCommandDesc(0x133B, "", "", 1);
    		pCommandManager->AddCommandDesc(pAutoBanDesc);
    	}
    
    	auto gameInterface = ((DWORD* (__cdecl*)())ZGetGameInterfaceAddress)();
        auto chat = ((gameInterface)+(0x380/sizeof(DWORD)));
        auto cmdManager = (DWORD*)((chat)+(0x4/sizeof(DWORD)));
    
        ZChatCmdManager__AddCommand(cmdManager, 0, "fps", UpdateFps, 0xf, 0, 0, false, "/fps 500", "Fps Updater");
    	ZChatCmdManager__AddCommand(cmdManager, 0, "listfps", ListFps, 0xf, 0, 0, false, "/listfps", "listfps");
    	ZChatCmdManager__AddCommand(cmdManager, 0, "texture", UpdateTextures, 0xf, 0, 0, false, "/texture", "textures");
    
    }
    
    
    bool __stdcall ZGameClient__OnCommandHook(MCommand* pCommand)
    {
    	Log::GetInstance()->info((boost::format("Got packet: [%1%]") % pCommand->m_pCommandDesc->m_szName).str().c_str());
    	for (int i = 0; i < 7; ++i)
    	{
    		if(pCommand->m_pCommandDesc->m_nCommandId == PacketResponses[i] && pCommand->m_uidSender.uidHigh != 2)
    		{
    			ZGameClient__OnCommandDet.Ret(FALSE);
    			Log::GetInstance()->error((boost::format("Invalid packet response: [%1%] recieved from %2%") % pCommand->m_pCommandDesc->m_szName % pCommand->m_uidSender.uidHigh).str().c_str());
    			return true;
    		}
    	}
    
    	if (pCommand->m_pCommandDesc->m_nCommandId == 0x2744)
    	{
    		int nId = 0;
    		char szMsg[512];
    
    		pCommand->GetParameter(szMsg, 1, MPT_STRING, 512);
    
    		if(strlen(szMsg) > 200)
    		{
    			ZGameClient__OnCommandDet.Ret(false);
    			return false;
    		}
    	}
    	if (pCommand->m_pCommandDesc->m_nCommandId == 0x3F9)
    	{
    		ZGameClient__OnCommandDet.Ret(false);
    		MUID uidPlayer;
    		float x,y,z,damage,ratio;
    		int ztype,wtype,mtype;
    
    		uidPlayer.uidLow = 0;
    		pCommand->GetParameter(&uidPlayer.uidHigh, 0, MPT_INT, -1);
    
    
    		if (pCommand->m_uidSender.uidHigh != GetMe().uidHigh)
    		{
    			MUID uidFrom;
    			uidFrom.uidLow = 0;
    
    			pCommand->GetParameter(&x, 1, MPT_FLOAT, -1);
    			pCommand->GetParameter(&y, 2, MPT_FLOAT, -1);
    			pCommand->GetParameter(&z, 3, MPT_FLOAT, -1);
    			pCommand->GetParameter(&ztype, 4, MPT_INT, -1);
    			pCommand->GetParameter(&wtype, 5, MPT_INT, -1);
    			pCommand->GetParameter(&damage, 6, MPT_FLOAT, -1);
    			pCommand->GetParameter(&ratio, 7, MPT_FLOAT, -1);
    			pCommand->GetParameter(&mtype, 8, MPT_INT, -1);
    			pCommand->GetParameter(&uidFrom.uidHigh, 9, MPT_INT, -1);
    	
    			D3DXVector3 pos;
    			pos.x = x;
    			pos.y = y;
    			pos.z = z;
    
    
    			if (damage > 150 || ratio > 2)
    			{
    				Log::GetInstance()->warning((boost::format("Player: [%2%] attempted to hack the anti-lead [%2% dmg]") % Find(pCommand->m_uidSender)->Name % damage).str().c_str());
    				ZPrint("Player: %s is attempting to hack the anti-lead!", Find(pCommand->m_uidSender)->Name);
    				damage = 0;
    			}
    
    			//ZCharacter__OnDamagedDetour.Remove();
    			if (Find(GetMe()) != NULL)
    			{
    				if (uidPlayer.uidHigh == GetMe().uidHigh)
    				{
    					MSTAGE_SETTING_NODE& pNode = ZGetGameClient()->GetStageSetting()->GetStageSettingNode();
    				
    					if ((pNode.nGameType == 0 || pNode.nGameType == 2 || pNode.nGameType == 5 || pNode.nGameType == 6 || pNode.nGameType == 10) || (Find(GetMe())->IsTeam(Find(pCommand->m_uidSender)) && pNode.bTeamKillEnabled) || !Find(GetMe())->IsTeam(Find(pCommand->m_uidSender)))
    					{
    						Find(GetMe())->OnDamaged(Find(uidFrom), pos, ztype, wtype, damage, ratio, mtype);
    					}
    				}
    			}
    		}
    	}
    
    	return true;
    }
    
    void __stdcall ZMyCharacter__OnDamagedHook(ZCharacter* pAttacker,D3DXVECTOR3 srcPos,int ZDAMAGETYPE, int WeaponType,float fDamage,float fPiercingRation,int nMeleeType)
    {
    	if(!strstr(ZGetGameClient()->CurrentChannel, "[LEAD]"))
    	{
    		MSTAGE_SETTING_NODE& pNode = ZGetGameClient()->GetStageSetting()->GetStageSettingNode();
    		if ((ZDAMAGETYPE == 5 && nMeleeType == -1) || pNode.nGameType == 8)
    		{
    			//! Massives.
    			ZMyCharacter__OnDamagedDetour.Ret(true);
    			return;
    		}
    
    
    		if(ZDAMAGETYPE != 1 && ZDAMAGETYPE != 2 && pNode.nGameType != 7 && pAttacker->GetUID().uidHigh != GetMe().uidHigh)
    		{
    			ZMyCharacter__OnDamagedDetour.Ret(false);
    			ZMyCharacter__OnDamagedDetour.Org(pAttacker, srcPos, ZDAMAGETYPE, WeaponType, 0, 0, nMeleeType);
    		}
    		else
    		{
    			ZMyCharacter__OnDamagedDetour.Ret(true);
    		}
    	}
    	else
    	{
    		ZMyCharacter__OnDamagedDetour.Ret(true);
    	}
    }
    void __stdcall ZCharacter__OnDamagedHook(ZCharacter* pAttacker,D3DXVECTOR3 srcPos,int ZDAMAGETYPE, int WeaponType,float fDamage,float fPiercingRation,int nMeleeType)
    {	
    	if(!strstr(ZGetGameClient()->CurrentChannel, "[LEAD]"))
    	{
    		auto pVictim = (ZCharacter*)ZCharacter__OnDamagedDetour.GetThisPtr();
    
    		if (ZDAMAGETYPE == 1)
    		{
    			//Don't lead melee.
    			return;
    		}
    
    		if (pAttacker == Find(GetMe()) && pVictim != Find(GetMe()))
    		{
    			MCommand* pCmd = MCommand::Create(0x3F9);
    			//pCmd->m_uidReceiver = pVictim->GetUID();
    			pCmd->AddParameter(new MCommandParameterInt(pVictim->GetUID().uidHigh));
    			pCmd->AddParameter(new MCommandParameterFloat(srcPos.x));
    			pCmd->AddParameter(new MCommandParameterFloat(srcPos.y));
    			pCmd->AddParameter(new MCommandParameterFloat(srcPos.z));
    			pCmd->AddParameter(new MCommandParameterInt(ZDAMAGETYPE));
    			pCmd->AddParameter(new MCommandParameterInt(WeaponType));
    			pCmd->AddParameter(new MCommandParameterFloat(fDamage));
    			pCmd->AddParameter(new MCommandParameterFloat(fPiercingRation));
    			pCmd->AddParameter(new MCommandParameterInt(nMeleeType));
    			pCmd->AddParameter(new MCommandParameterInt(0));
    			MCommand::Post(pCmd);
    
    			fDamage = 0;
    		}
    	}
    }
    who can help or private or in here

    Or have one method to disable the ant hack for work

    thanks


  2. #2
    Account Upgraded | Title Enabled! ForceGFX is offline
    MemberRank
    Jan 2012 Join Date
    The NetherlandsLocation
    412Posts

    Re: [Help] GunZ Protect - Anti Lead

    Antlead.cpp for anti hack?

  3. #3
    Intelligent DoucheBag jur13n is offline
    MemberRank
    Jan 2008 Join Date
    Zwolle,Location
    1,946Posts

    Re: [Help] GunZ Protect - Anti Lead

    I think the get hp/ap is disabled.
    but it's not in there?

  4. #4
    Mako is insane. ThePhailure772 is offline
    MemberRank
    Sep 2007 Join Date
    1,115Posts

    Re: [Help] GunZ Protect - Anti Lead

    >my anti-lead

    LOLOLOL, stop claiming your shit is mine.

  5. #5
    Account Upgraded | Title Enabled! Mitcho is offline
    MemberRank
    Dec 2011 Join Date
    AdminCPLocation
    339Posts

    Re: [Help] GunZ Protect - Anti Lead

    Quote Originally Posted by ThePhailure772 View Post
    >my anti-lead

    LOLOLOL, stop claiming your shit is mine.
    Well actually you might be coding it, but when someone does buy anything from someone, it means the project belongs to the buyer.

  6. #6
    2D > 3D Wucas is offline
    MemberRank
    Dec 2008 Join Date
    In your bed :3Location
    2,523Posts

    Re: [Help] GunZ Protect - Anti Lead

    Quote Originally Posted by Shadow717 View Post
    Well actually you might be coding it, but when someone does buy anything from someone, it means the project belongs to the buyer.
    it does not, however, mean they can post it on ragezone and
    ask for help, that is what we call *leaking* and although it
    is questionable when it comes to rules, it is very unethical.

    What OP should have done is ask the original designer how to
    implement it, I have no doubt that if he did buy this from
    Jacob, he would have given him enough help to have it actually
    work.

    <.< regardless, I will not help a person leaking files to the
    rest of the forum without asking the active developer already
    on these forums

  7. #7
    Enthusiast gabrielranks is offline
    MemberRank
    Jul 2011 Join Date
    33Posts

    Re: [Help] GunZ Protect - Anti Lead

    I saw that not perhaps the ant hack block can get the adress ap and hp


    I want to know which line if someone can help

  8. #8
    Account Upgraded | Title Enabled! ForceGFX is offline
    MemberRank
    Jan 2012 Join Date
    The NetherlandsLocation
    412Posts

    Re: [Help] GunZ Protect - Anti Lead

    I even dont know why the hell people are posting things like this.
    People such as Mark, Jacob, Dawson are making a Anti lead system to sell it, they really work hard on it. And now they can't make money because somebody is publicing it.
    You can do whatever you want with a Anti-Lead system if you have permission to do it or when you have made it by your self.

  9. #9
    Intelligent DoucheBag jur13n is offline
    MemberRank
    Jan 2008 Join Date
    Zwolle,Location
    1,946Posts

    Re: [Help] GunZ Protect - Anti Lead

    Quote Originally Posted by ForceGFX View Post
    I even dont know why the hell people are posting things like this.
    People such as Mark, Jacob, Dawson are making a Anti lead system to sell it, they really work hard on it. And now they can't make money because somebody is publicing it.
    You can do whatever you want with a Anti-Lead system if you have permission to do it or when you have made it by your self.
    did u ever heard of gunzshit.rar?
    the one jacob released himself?
    kthxbai

  10. #10
    Enthusiast gabrielranks is offline
    MemberRank
    Jul 2011 Join Date
    33Posts

    Re: [Help] GunZ Protect - Anti Lead

    the dc continues '-'

    have one member to disable ant hack maybe the ant hack its blocking the adress hp and ap get

  11. #11
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: [Help] GunZ Protect - Anti Lead

    Quote Originally Posted by gabrielranks View Post
    the dc continues '-'

    have one member to disable ant hack maybe the ant hack its blocking the adress hp and ap get

    try to disable the DC...

    //! DC Request
    {
    MCommandDesc* pDCDesc = new MCommandDesc(0x1338, "", "", 1);
    pDCDesc->AddParamDesc(new MCommandParameterDesc(MPT_STRING, ""));
    pDCDesc->AddParamDesc(new MCommandParameterDesc(MPT_STRING, ""));
    pCommandManager->AddCommandDesc(pDCDesc);
    }

  12. #12
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: [Help] GunZ Protect - Anti Lead

    Quote Originally Posted by sahar042 View Post
    try to disable the DC...

    //! DC Request
    {
    MCommandDesc* pDCDesc = new MCommandDesc(0x1338, "", "", 1);
    pDCDesc->AddParamDesc(new MCommandParameterDesc(MPT_STRING, ""));
    pDCDesc->AddParamDesc(new MCommandParameterDesc(MPT_STRING, ""));
    pCommandManager->AddCommandDesc(pDCDesc);
    }
    Ye it will work but all the pings are going to be 999 now

  13. #13
    Freelance GunZ Developer Touchwise is offline
    MemberRank
    Aug 2009 Join Date
    The NetherlandsLocation
    754Posts

    Re: [Help] GunZ Protect - Anti Lead

    Quote Originally Posted by ForceGFX View Post
    I even dont know why the hell people are posting things like this.
    People such as Mark, Jacob, Dawson are making a Anti lead system to sell it, they really work hard on it. And now they can't make money because somebody is publicing it.
    You can do whatever you want with a Anti-Lead system if you have permission to do it or when you have made it by your self.
    Jacob released this himself most of the stuff in the release was unfinished tough it was meant to learn from it. And well making a anti lead system isn't that hard for mark, jacob or dawson for them it's just easy money making since 99% of the whole gunz section doesn't even know what a loop means.

  14. #14
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: [Help] GunZ Protect - Anti Lead

    Quote Originally Posted by Touchwise View Post
    Jacob released this himself most of the stuff in the release was unfinished tough it was meant to learn from it. And well making a anti lead system isn't that hard for mark, jacob or dawson for them it's just easy money making since 99% of the whole gunz section doesn't even know what a loop means.
    How are loops involved with anti-lead systems?

  15. #15
    Proficient Member coole9 is offline
    MemberRank
    Apr 2009 Join Date
    ..Location
    167Posts

    Re: [Help] GunZ Protect - Anti Lead

    Quote Originally Posted by Vusion View Post
    How are loops involved with anti-lead systems?
    The point he's trying to make is that the GunZ section is inexperienced in basic coding (hense the loop statement he made).

  16. #16
    Hi, I'm Omar! Vusion is offline
    MemberRank
    Jan 2011 Join Date
    HereLocation
    1,658Posts

    Re: [Help] GunZ Protect - Anti Lead

    Not really, they just don't like to contribute often.
    Posted via Mobile Device

  17. #17
    Proficient Member coole9 is offline
    MemberRank
    Apr 2009 Join Date
    ..Location
    167Posts

    Re: [Help] GunZ Protect - Anti Lead

    Quote Originally Posted by Vusion View Post
    Not really, they just don't like to contribute often.
    Posted via Mobile Device
    Well I didn't say I agreed with him, I'm just pointing out what he meant.

  18. #18
    Enthusiast gabrielranks is offline
    MemberRank
    Jul 2011 Join Date
    33Posts

    Re: [Help] GunZ Protect - Anti Lead

    try to disable the DC...

    //! DC Request
    {
    MCommandDesc* pDCDesc = new MCommandDesc(0x1338, "", "", 1);
    pDCDesc->AddParamDesc(new MCommandParameterDesc(MPT_STRING, ""));
    pDCDesc->AddParamDesc(new MCommandParameterDesc(MPT_STRING, ""));
    pCommandManager->AddCommandDesc(pDCDesc);
    }

    disable this dont work the dc continues



Advertisement