AntiLead DC!

Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    sad AntiLead DC!

    Hello guys, i'm using "GunzProtect" source and i compile it without erros, everything works fine excep one thing: when some one shoot other one the players disconected!! so what you think how i can fix this problem?
    AntiLead Source :
    Code:
    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;
    		}
    	}
    }


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

    Re: AntiLead DC!

    Dont release this dude believe me you don't want that

  3. #3
    Account Upgraded | Title Enabled! Taxic is offline
    MemberRank
    Nov 2011 Join Date
    The NetherlandsLocation
    203Posts

    Re: AntiLead DC!

    forceGFX why not lol? antilead source you can download them on the internet... this is not the dll just the source and it has an failed code lines..

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

    Re: AntiLead DC!

    You know the whole Gunz Community will hate you if you are releasing a Anti lead Source?

    Quote Originally Posted by Taxic View Post
    forceGFX why not lol? antilead source you can download them on the internet... this is not the dll just the source and it has an failed code lines..
    U mad? none of them is working or they are bad.

  5. #5
    Ecchi addicted adz28 is offline
    MemberRank
    Nov 2008 Join Date
    IkebukuroLocation
    524Posts

    Re: AntiLead DC!

    He can do it if he want, the source was released by Jacob so if he fix the problem he can do it.

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

    Re: AntiLead DC!

    Guys i need help, i didnt release anything lol. I need someone to correct the Fail line and im not releasing nothing lol

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

    Re: AntiLead DC!

    Quote Originally Posted by qet123 View Post
    Guys i need help, i didnt release anything lol. I need someone to correct the Fail line and im not releasing nothing lol
    Everything looks good i dont know,

  8. #8
    Banned mhmd135 is offline
    BannedRank
    Jul 2010 Join Date
    437Posts

    Re: AntiLead DC!

    same problem but i crash when shot someone
    anti lead works for me fine if i deleted the anti hack

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

    Re: AntiLead DC!

    Quote Originally Posted by mhmd135 View Post
    same problem but i crash when shot someone
    anti lead works for me fine if i deleted the anti hack
    Obviously, your anti-hack blocks GETHP and GETAP which most of the anti-hacks block it from being called, which no lead uses it.

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

    Re: AntiLead DC!

    Quote Originally Posted by Taxic View Post
    forceGFX why not lol? antilead source you can download them on the internet... this is not the dll just the source and it has an failed code lines..
    bullshit


    Quote Originally Posted by ForceGFX View Post
    You know the whole Gunz Community will hate you if you are releasing a Anti lead Source?



    U mad? none of them is working or they are bad.
    bullshit


    Quote Originally Posted by Vusion View Post
    Obviously, your anti-hack blocks GETHP and GETAP which most of the anti-hacks block it from being called, which no lead uses it.
    finally someone saying a right thing -.-'

    this community was good in 2007 with RagezoneGunZ
    now its full of F***Tards

  11. #11
    Proficient Member Mr_Troy is offline
    MemberRank
    Jun 2007 Join Date
    172Posts

    Re: AntiLead DC!

    Quote Originally Posted by ForceGFX View Post
    Dont release this dude believe me you don't want that
    Like no1 knows how to do anti-lead.. Almost everyone has the WTT source by now.

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

    Re: AntiLead DC!

    Quote Originally Posted by Mr_Troy View Post
    Like no1 knows how to do anti-lead.. Almost everyone has the WTT source by now.
    what about Quality Gunz anti lead?

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

    Re: AntiLead DC!

    Maybe you should go look for some typemistakes, go look if every code is ending with the (;) command or starting with { and ending with }

  14. #14
    Proficient Member Mr_Troy is offline
    MemberRank
    Jun 2007 Join Date
    172Posts

    Re: AntiLead DC!

    Quote Originally Posted by ForceGFX View Post
    Maybe you should go look for some typemistakes, go look if every code is ending with the (;) command or starting with { and ending with }
    That doesn't matter, cause the code compiles fine.

    qet123, the problem is your project settings. Remove all optimization stuff and it should work.

    Atleast, the optimization settings were always working against me when doin antilead n stuff and the same thing happened so I think this is the solution
    Last edited by Mr_Troy; 05-01-12 at 03:39 PM.

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

    Re: AntiLead DC!

    Quote Originally Posted by ForceGFX View Post
    Maybe you should go look for some typemistakes, go look if every code is ending with the (;) command or starting with { and ending with }
    Syntax errors would show, so, just stop posting if you don't know what's up.



Page 1 of 2 12 LastLast

Advertisement