Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Essentials.h"
- #include <thread>
- using Essentials::MemoryManager;
- MemoryManager* Mem = new MemoryManager();
- int PaintKit = 0;
- int Seed = 0;
- int StatTrak = -1;
- float Wear = 0.0f;
- void ForceFullUpdate()
- {
- //ForceFullUpdate code...
- }
- void SetSkin()
- {
- //Set skin code...
- //Implying that this is thread function
- while (true)
- {
- //Memory->Write using global vars
- }
- }
- void SetSkinData()
- {
- //Set skin data code...
- while (true)
- {
- if (GetAsyncKeyState(VK_F1))
- {
- system("CLS");
- std::cout<<"Insert PaintKit: "; std::cin>>PaintKit;
- std::cout<<"\nInsert Seed: "; std::cin>>Seed;
- std::cout<<"\nInsert StatTrak value: "; std::cin>>StatTrak;
- std::cout<<"\nInsert Wear value: "; std::cin>>Wear;
- ForceFullUpdate();
- Sleep(200);
- }
- }
- }
- int main()
- {
- std::thread SETSKIN_thread = std::thread(SetSkin);
- std::thread SETSKINDATA_thread = std::thread(SetSkinData);
- SETSKIN_thread.join();
- SETSKINDATA_thread.join();
- return 0;
- }
Add Comment
Please, Sign In to add comment