Untitled
#define NOMINMAX #include "memory.h" #include "thread" #include <iostream> #include <typeinfo> #include <vector> #include "SFML/Graphics.hpp" using namespace std; int entetylist = 0x16E1C70; int localplayeraddr = 0x16D4F48; int offcet_health = 0x32C; int offcetx = 0xCD8; int offcety = 0xCDC; int offcetteam = 0x3bf; int health, team, localteam; int posx, posy; uintptr_t Player; uintptr_t localPlayer; int main() { sf::Window window(sf::VideoMode(800, 600), "My window"); bool a; cout << "show team?" << endl; cin >> a; while (true) { std::this_thread::sleep_for(std::chrono::milliseconds(100)); localPlayer = VARS::memRead<uintptr_t>(VARS::baseAddress + localplayeraddr); system("cls"); for (int i = 0; i <= 64; i++) { Player = VARS::memRead<uintptr_t>(VARS::baseAddress + entetylist + (i * 0x08)); team = VARS::memRead<int>(Player + offcetteam); localteam = VARS::memRead<uintptr_t>(localPlayer + offcetteam); if (a == 0) { if (localteam != team) { health = VARS::memRead<int>(Player + offcet_health); posx = VARS::memRead<float>(Player + offcetx); posy = VARS::memRead<float>(Player + offcety); if (health <= 100 and health > 0) std::cout << team << " " << health << " x: " << posx / 10 << " y: " << posy / 10 << std::endl; } } else if (a == 1) { health = VARS::memRead<int>(Player + offcet_health); posx = VARS::memRead<float>(Player + offcetx); posy = VARS::memRead<float>(Player + offcety); if (health <= 100 and health > 0) std::cout << team << " " << health << " x: " << posx / 10 << " y: " << posy / 10 << std::endl; } } sf::RectangleShape rect; sf::Vector2f rectanglePosit(600, 350); rect.setPosition(rectanglePosit); rect.setSize(sf::Vector2f(100, 100)); sf::Event event; while (window.pollEvent(event)) { if (event.type == sf::Event::Closed) window.close(); } window.display(); window.draw(); } return 0; }
Leave a Comment