#include // Assuming you have access to the game's functions and objects if (Game.Player.WantedLevel > 0) { Game.Player.WantedLevel--; std::cout << "Wanted level decreased to " << Game.Player.WantedLevel << std::endl; } else { std::cout << "No wanted level" << std::endl; }