Advertisement
Smi-ChetDev

stickrpg clantag

Aug 17th, 2019
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. void SetClan(const char* tag, const char* name) // Above Animated_Clantag inside Misc.h
  2. {
  3. 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")));
  4. pSetClanTag(tag, name);
  5. }
  6.  
  7. void Animated_Clantag() // inside Misc.h
  8. {
  9. if (!g_Menu.Config.EnableClanttag)
  10. return;
  11.  
  12. auto local_player = g_pEntityList->GetClientEntity(g_pEngine->GetLocalPlayer());
  13. if (!local_player)
  14. return;
  15.  
  16. if (g_Menu.Config.EnableClanttag)
  17. {
  18. static int counter = 0;
  19. static std::string clantag = "stickrpghook ";
  20. if (++counter > 25)
  21. {
  22. std::rotate(clantag.begin(), clantag.begin() + 1, clantag.end());
  23. SetClan(clantag.c_str(), clantag.c_str());
  24. counter = 0;
  25. }
  26. }
  27. } // Hook in Misc.h (OnCreateMove) EI: this->Animated_Clantag();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement