HelpName Spamer/Stealer source code.

Posts 1–7 of 7 · Page 1 of 1
Name Spamer/Stealer source code.
Someone know a simple name spamer code for c++ visual studio or whatever?
Quote Originally Posted by ElectroSelling View Post
Someone know a simple name spamer code for c++ visual studio or whatever?
You are probably going to need an sdk for this.

Code: (Name Stealer)

Credits to cdriza (not on this forum)
Code:
	if (!bNameUnlocked)
	{
		ConVar* pName = Cvar->FindVar("name");
		pName->fnChangeCallback = NULL;
		bNameUnlocked = true;
	}

	bool bDidMeme = false;
	int iNameIndex = -1;
	char chCommand[50];

	for (int iPlayerIndex = 0; iPlayerIndex < Engine->GetMaxClients(); iPlayerIndex++)
	{
		CBaseEntity* pEntity = (CBaseEntity*)ClientEntList->GetClientEntity(iPlayerIndex);

		if (!pEntity || pEntity == Global::LocalPlayer || iPlayerIndex == Engine->GetLocalPlayer() || Global::LocalPlayer->GetTeam() != pEntity->GetTeam())
			continue;

		if (rand() % 3 == 1)
		{
			iNameIndex = pEntity->index;
			bDidMeme = true;
		}
	}

	if (bDidMeme)
	{
		player_info_t pInfo;
		Engine->GetPlayerInfo(iNameIndex, &pInfo);

		sprintf(chCommand, "name \"%s  \"", pInfo.name);
	}

	if (!bDidMeme)
		return;

	Engine->ExecuteClientCmd(chCommand);
Quote Originally Posted by WildAssassinz View Post
You are probably going to need an sdk for this.

Code: (Name Stealer)

Credits to cdriza (not on this forum)
Code:
	if (!bNameUnlocked)
	{
		ConVar* pName = Cvar->FindVar("name");
		pName->fnChangeCallback = NULL;
		bNameUnlocked = true;
	}

	bool bDidMeme = false;
	int iNameIndex = -1;
	char chCommand[50];

	for (int iPlayerIndex = 0; iPlayerIndex < Engine->GetMaxClients(); iPlayerIndex++)
	{
		CBaseEntity* pEntity = (CBaseEntity*)ClientEntList->GetClientEntity(iPlayerIndex);

		if (!pEntity || pEntity == Global::LocalPlayer || iPlayerIndex == Engine->GetLocalPlayer() || Global::LocalPlayer->GetTeam() != pEntity->GetTeam())
			continue;

		if (rand() % 3 == 1)
		{
			iNameIndex = pEntity->index;
			bDidMeme = true;
		}
	}

	if (bDidMeme)
	{
		player_info_t pInfo;
		Engine->GetPlayerInfo(iNameIndex, &pInfo);

		sprintf(chCommand, "name \"%s  \"", pInfo.name);
	}

	if (!bDidMeme)
		return;

	Engine->ExecuteClientCmd(chCommand);
ewww literally the worst way. Just funny how 50 lines of code can be converted into 20 by just using your brain.
Quote Originally Posted by Lols12342 View Post
ewww literally the worst way. Just funny how 50 lines of code can be converted into 20 by just using your brain.
Ehhh I wouldn't use my brain power here.
Quote Originally Posted by WildAssassinz View Post
You are probably going to need an sdk for this.
SDK is not necessary at all. I wrote one externally using the radar struct.
Then whats the best way? do u have one yourself?
Quote Originally Posted by ElectroSelling View Post
Then whats the best way? do u have one yourself?
I indeed do. Like I sad by just using your brain and a bit off c++ knowledge you can make it shorter. I wont give you pasta
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us