Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inline void setclantag(const char* tag)
- {
- static auto ClanTagOffset = Utils::FindPattern("engine.dll", (PBYTE)"\x53\x56\x57\x8B\xDA\x8B\xF9\xFF\x15", "xxxxxxxxx");
- if (ClanTagOffset)
- {
- auto tag_ = std::string(tag);
- if (strlen(tag) > 0) {
- auto newline = tag_.find("\\n");
- auto tab = tag_.find("\\t");
- if (newline != std::string::npos) {
- tag_.replace(newline, newline + 2, "\n");
- }
- if (tab != std::string::npos) {
- tag_.replace(tab, tab + 2, "\t");
- }
- }
- static auto dankesttSetClanTag = reinterpret_cast<void(__fastcall*)(const char*, const char*)>(ClanTagOffset);
- dankesttSetClanTag(tag_.data(), tag_.data());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement