-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Hello. How to add clantag in indigo. so Here you go.
PS: Let me know if this give you any errors.
========================================
Settings.cpp in misc struct add
int misc_Clan = 0;
=========================================
Settings.h in misc struct add
extern int misc_Clan;
==========================================
Add This in CSX_Memory.cpp in namespace memory
===========================================
Add This under namespace Memory in CSX_Memory.h
============================================
Add This under bool IsLocalAlive () in Engine.cpp
Add this in Misc.cpp in void CMisc::OnCreateMove( CUserCmd* pCmd )
Add this in Engine.h in namespace Engine
===========================
Client.cpp
PS: Let me know if this give you any errors.
========================================
Settings.cpp in misc struct add
int misc_Clan = 0;
=========================================
Settings.h in misc struct add
extern int misc_Clan;
==========================================
Add This in CSX_Memory.cpp in namespace memory
Код:
/* Find Push String ( 0x68, dword ptr [str] ) */
DWORD FindPatternV2(std::string moduleName, std::string Mask)
{
const char* pat = Mask.c_str();
DWORD firstMatch = 0;
DWORD rangeStart = (DWORD)GetModuleHandleA(moduleName.c_str());
MODULEINFO miModInfo; GetModuleInformation(GetCurrentProcess(), (HMODULE)rangeStart, &miModInfo, sizeof(MODULEINFO));
DWORD rangeEnd = rangeStart + miModInfo.SizeOfImage;
for (DWORD pCur = rangeStart; pCur < rangeEnd; pCur++)
{
if (!*pat)
{
return firstMatch;
}
if (*(PBYTE)pat == '\?' || *(BYTE*)pCur == getByte(pat))
{
if (!firstMatch)
{
firstMatch = pCur;
}
if (!pat[2])
{
return firstMatch;
}
if (*(PWORD)pat == '\?\?' || *(PBYTE)pat != '\?')
{
pat += 3;
}
else
{
pat += 2; //one ?
}
}
else
{
pat = Mask.c_str();
firstMatch = 0;
}
}
return NULL;
}
Add This under namespace Memory in CSX_Memory.h
Код:
DWORD FindPatternV2(std::string moduleName, std::string Mask);
Add This under bool IsLocalAlive () in Engine.cpp
Код:
void SetMyClanTag (const char * tag, const char * name)
{
static auto pSetClanTag = reinterpret_cast <void (__ fastcall *) (const char *, const char *)> (((DWORD) CSX :: Memory :: FindPatternV2 ("engine.dll", "53 56 57 8B DA 8B F9 FF 15" ")));
pSetClanTag (tag, name);
}
[/ CODE]
Add This under void SetMyClanTag
[CODE]
void ClanTag ()
{
CBaseEntity * pPlayer = (CBaseEntity *) Interfaces :: EntityList () -> GetClientEntity (Interfaces :: Engine () -> GetLocalPlayer ());
static int counter = 0;
int value = Settings :: Misc :: misc_Clan;
switch (value)
{
case 1:
{
SetMyClanTag ("", ""); // None clantag
break;
}
case 2:
{
SetMyClanTag ("* Postwateveryouwant *", "* Postwateveryouwant *"); // this is how your name + clantag
break;
}
case 3:
{
SetMyClanTag("*Postwateveryouwant* \r", "*Postwateveryouwant*"); // this is only show clantag
break;
}
case 4:
{
SetMyClanTag("[VALV\xE1\xB4\xB1]", "Valve"); // this is show your name + valve clantag
break;
}
case 5:
{
SetMyClanTag("[VALV\xE1\xB4\xB1] \r", "Valve Only"); // this is valve show clantag only
break;
}
case 6: //This is the animation part
{
static int motion = 0;
if (counter % 48 == 0)
motion++;
int ServerTime = (float)pPlayer->GetTickBase() * Interfaces::GlobalVars()->interval_per_tick;
int value = ServerTime % 11;
switch (value)
{
case 0:
{
SetMyClanTag("", "");
break;
}
case 1:
{
SetMyClanTag("*Postwateveryouwant*", "*Postwateveryouwant*");
break;
}
case 2:
{
SetMyClanTag("*Postwateveryouwant*", "*Postwateveryouwant*");
break;
}
case 3:
{
SetMyClanTag("*Postwateveryouwant*", "*Postwateveryouwant*");
break;
}
case 4:
{
SetMyClanTag("*Postwateveryouwant*", "*Postwateveryouwant*");
break;
}
case 5:
{
SetMyClanTag("*Postwateveryouwant*", "*Postwateveryouwant*");
break;
}
case 6:
{
SetMyClanTag("*Postwateveryouwant*", "*Postwateveryouwant*");
break;
}
case 7:
{
SetMyClanTag("*Postwateveryouwant*", "*Postwateveryouwant*");
break;
}
case 8:
{
SetMyClanTag("*Postwateveryouwant*", "*Postwateveryouwant*");
break;
}
case 9:
{
SetMyClanTag("*Postwateveryouwant*", "*Postwateveryouwant*");
break;
}
case 10:
{
SetMyClanTag("*Postwateveryouwant*", "*Postwateveryouwant*");
break;
}
}
counter++;
}
break;
}
}
Код:
if (Settings::Misc::misc_Clan > 0)
ClanTag();
Код:
void ClanTag();
Client.cpp
Код:
string clan_1 = "None";
string clan_2 = "Clear";
string clan_3 = "*Postwateveryouwant*";
string clan_4 = "*Postwateveryouwant* No-name";
string clan_5 = "Valve";
string clan_6 = "Valve No-name";
string clan_7 = "Animation";
const char* items5[] = { clan_1.c_str() , clan_2.c_str() , clan_3.c_str() , clan_4.c_str() , clan_5.c_str() , clan_6.c_str() , clan_7.c_str() };
ImGui::Combo("Clan Changer", &Settings::Misc::misc_Clan, items5, IM_ARRAYSIZE(items5));
Последнее редактирование: