Wolfrost

C++ Template

Jan 28th, 2016
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "Essentials.h"
  2. #include <thread>
  3. using Essentials::MemoryManager;
  4.  
  5. MemoryManager* Mem = new MemoryManager();
  6.  
  7. int PaintKit = 0;
  8. int Seed = 0;
  9. int StatTrak = -1;
  10. float Wear = 0.0f;
  11.  
  12. void ForceFullUpdate()
  13. {
  14.     //ForceFullUpdate code...
  15. }
  16.  
  17. void SetSkin()
  18. {
  19.     //Set skin code...
  20.     //Implying that this is thread function
  21.     while (true)
  22.     {
  23.         //Memory->Write using global vars
  24.     }
  25. }
  26.  
  27. void SetSkinData()
  28. {
  29.     //Set skin data code...
  30.     while (true)
  31.     {
  32.         if (GetAsyncKeyState(VK_F1))
  33.         {
  34.             system("CLS");
  35.             std::cout<<"Insert PaintKit: "; std::cin>>PaintKit;
  36.             std::cout<<"\nInsert Seed: "; std::cin>>Seed;
  37.             std::cout<<"\nInsert StatTrak value: "; std::cin>>StatTrak;
  38.             std::cout<<"\nInsert Wear value: "; std::cin>>Wear;
  39.             ForceFullUpdate();
  40.             Sleep(200);
  41.         }
  42.     }
  43. }
  44.  
  45. int main()
  46. {
  47.  
  48.     std::thread SETSKIN_thread = std::thread(SetSkin);
  49.     std::thread SETSKINDATA_thread = std::thread(SetSkinData);
  50.  
  51.     SETSKIN_thread.join();
  52.     SETSKINDATA_thread.join();
  53.  
  54.     return 0;
  55. }
Add Comment
Please, Sign In to add comment