SHARE
TWEET

Untitled

a guest Jul 15th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. typedef void(__fastcall* ClanTagFn)(const char*, const char*);
  2.     ClanTagFn dw_ClanTag;
  3.     void SetClanTag(const char* tag, const char* name)
  4.     {
  5.  
  6.         if (!dw_ClanTag)
  7.             dw_ClanTag = reinterpret_cast<ClanTagFn>(((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")));
  8.  
  9.         if (dw_ClanTag)
  10.             dw_ClanTag(tag, name);
  11.     }
  12.     void Clan_Tag()
  13.     {
  14.         if (!SETTINGS::settings.clantags == 1)
  15.             return;
  16.         static int iLastTime;
  17.        
  18.        
  19.         if (int(INTERFACES::Globals->curtime) != iLastTime)
  20.         {
  21.             switch (int(INTERFACES::Globals->curtime) % 15)
  22.             {
  23.             case 0:SetClanTag("C", "Cash Hack"); break;
  24.             case 1:SetClanTag("Ca", "Cash Hack"); break;
  25.             case 2:SetClanTag("Cas", "Cash Hack"); break;
  26.             case 3:SetClanTag("Cash", "Cash Hack"); break;
  27.             case 4:SetClanTag("Cash ", "Cash Hack"); break;
  28.             case 5:SetClanTag("Cash H", "Cash Hack"); break;
  29.             case 6:SetClanTag("Cash Ha", "Cash Hack"); break;
  30.             case 7:SetClanTag("Cash Hac", "Cash Hack"); break;
  31.             case 8:SetClanTag("Cash Hack", "Cash Hack"); break;
  32.             case 9:SetClanTag("Cash Hac", "Cash Hack"); break;
  33.             case 10:SetClanTag("Cash Ha", "Cash Hack"); break;
  34.             case 11:SetClanTag("Cash H", "Cash Hack"); break;
  35.             case 12:SetClanTag("Cash ", "Cash Hack"); break;
  36.             case 13:SetClanTag("Cash", "Cash Hack"); break;
  37.             case 14:SetClanTag("Cas", "Cash Hack"); break;
  38.             case 15:SetClanTag("Ca", "Cash Hack"); break;
  39.             case 16:SetClanTag("C", "Cash Hack"); break;
  40.             }
  41.            
  42.             iLastTime = int(INTERFACES::Globals->curtime);
  43.         }
  44.     }
  45.    
  46.     void set_name(const char* name)
  47.     {
  48.         SDK::ConVar* nameConvar = INTERFACES::cvar->FindVar(("name"));
  49.         *(int*)((DWORD)&nameConvar->fnChangeCallback + 0xC) = NULL;
  50.         nameConvar->SetValueChar(name);
  51.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top