Help [HELP] S0beit

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
Hi,

So i never worked with S0beit's before. I just want to know how can I edit stuff in them or how to make my own stuff in them. Like [member=8182]Evangelical[/member]  posted a code in c++ for s0beit and he send that you can add it in to it:


Evangelical link said:
got in c++ for s0beit, make your own if you want for CLEO.

Code:
Packet* HookedRakClientInterface::Receive( void )
{
	traceLastFunc( "HookedRakClientInterface::Receive" );

	Packet* ReceivedPacket = g_iRakClient->GetRakClientInterface()->Receive();
	BYTE ReceivedPacketID = GetPacketID(ReceivedPacket);

	if(ReceivedPacketID == ID_BULLET_SYNC)
	{
		RakNet::BitStream bsBulletSync((unsigned char *)ReceivedPacket->data, ReceivedPacket->length, false);

		stBulletData BulletData;
		unsigned short PlayerID;

		memset(&BulletData, 0, sizeof(stBulletData));

		bsBulletSync.IgnoreBits(8);
		bsBulletSync.Read(PlayerID);
		bsBulletSync.Read((PCHAR)&BulletData, sizeof(stBulletData));

		bool bInvalid = 0;

		if(!_finite(BulletData.fHitOrigin[0]) || !_finite(BulletData.fHitOrigin[1]) || !_finite(BulletData.fHitOrigin[2]))
			bInvalid = 1;

		if(!_finite(BulletData.fHitTarget[0]) || !_finite(BulletData.fHitTarget[1]) || !_finite(BulletData.fHitTarget[2]))
			bInvalid = 1;

		if(!_finite(BulletData.fCenterOfHit[0]) || !_finite(BulletData.fCenterOfHit[1]) || !_finite(BulletData.fCenterOfHit[2]))
			bInvalid = 1;

		if(BulletData.fHitOrigin[0] > 35000.0f || BulletData.fHitOrigin[0] < -35000.0f || BulletData.fHitOrigin[1] > 35000.0f || BulletData.fHitOrigin[1] < -35000.0f || BulletData.fHitOrigin[2] > 35000.0f || BulletData.fHitOrigin[2] < -35000.0f)
			bInvalid = 1;

		if(BulletData.fHitTarget[0] > 35000.0f || BulletData.fHitTarget[0] < -35000.0f || BulletData.fHitTarget[1] > 35000.0f || BulletData.fHitTarget[1] < -35000.0f || BulletData.fHitTarget[2] > 35000.0f || BulletData.fHitTarget[2] < -35000.0f)
			bInvalid = 1;

		if(BulletData.bHitType == BULLET_HIT_TYPE_PLAYER && ((BulletData.fCenterOfHit[0] > 10.0f || BulletData.fCenterOfHit[0] < -10.0f) || (BulletData.fCenterOfHit[1] > 10.0f || BulletData.fCenterOfHit[1] < -10.0f) || (BulletData.fCenterOfHit[2] > 10.0f || BulletData.fCenterOfHit[2] < -10.0f)))
			bInvalid = 1;

		if(bInvalid)
		{
			ReceivedPacket->data[0] = 255;
			cheat_state_text("Anti-Crasher: A faggot named %s has tried to crash you. Pwn his niggered ass now!", getPlayerName(PlayerID));
		}
	}

	return ReceivedPacket;
}


I tried to find tutorials on internet but I couldn't.
 
Top