Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. inline void setclantag(const char* tag)
  2. {
  3. static auto ClanTagOffset = Utils::FindPattern("engine.dll", (PBYTE)"\x53\x56\x57\x8B\xDA\x8B\xF9\xFF\x15", "xxxxxxxxx");
  4. if (ClanTagOffset)
  5. {
  6. auto tag_ = std::string(tag);
  7. if (strlen(tag) > 0) {
  8. auto newline = tag_.find("\\n");
  9. auto tab = tag_.find("\\t");
  10. if (newline != std::string::npos) {
  11. tag_.replace(newline, newline + 2, "\n");
  12. }
  13. if (tab != std::string::npos) {
  14. tag_.replace(tab, tab + 2, "\t");
  15. }
  16. }
  17. static auto dankesttSetClanTag = reinterpret_cast<void(__fastcall*)(const char*, const char*)>(ClanTagOffset);
  18. dankesttSetClanTag(tag_.data(), tag_.data());
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement