Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void SetClan(const char* tag, const char* name) // Above Animated_Clantag inside Misc.h
- {
- static auto pSetClanTag = reinterpret_cast<void(__fastcall*)(const char*, const char*)>(((DWORD)Utils::FindPattern("engine.dll", (PBYTE)"\x53\x56\x57\x8B\xDA\x8B\xF9\xFF\x15\x00\x00\x00\x00\x6A\x24\x8B\xC8\x8B\x30", "xxxxxxxxx????xxxxxx")));
- pSetClanTag(tag, name);
- }
- void Animated_Clantag() // inside Misc.h
- {
- if (!g_Menu.Config.EnableClanttag)
- return;
- auto local_player = g_pEntityList->GetClientEntity(g_pEngine->GetLocalPlayer());
- if (!local_player)
- return;
- if (g_Menu.Config.EnableClanttag)
- {
- static int counter = 0;
- static std::string clantag = "stickrpghook ";
- if (++counter > 25)
- {
- std::rotate(clantag.begin(), clantag.begin() + 1, clantag.end());
- SetClan(clantag.c_str(), clantag.c_str());
- counter = 0;
- }
- }
- } // Hook in Misc.h (OnCreateMove) EI: this->Animated_Clantag();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement