2022-12-06 16:12:02 +00:00
|
|
|
#include "views/view.hpp"
|
|
|
|
#include "util/teleport.hpp"
|
|
|
|
#include "util/vehicle.hpp"
|
2023-01-06 23:25:16 +00:00
|
|
|
#include "util/troll.hpp"
|
2022-12-06 16:12:02 +00:00
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void view::player_troll()
|
|
|
|
{
|
|
|
|
if (ImGui::TreeNode("Troll"))
|
|
|
|
{
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"playertp">(g_player_service->get_selected());
|
2022-12-06 16:12:02 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"bring">(g_player_service->get_selected());
|
2022-12-06 16:12:02 +00:00
|
|
|
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"playervehtp">(g_player_service->get_selected());
|
|
|
|
components::player_command_button<"rcplayer">(g_player_service->get_selected());
|
2022-12-06 16:12:02 +00:00
|
|
|
|
2023-01-06 23:25:16 +00:00
|
|
|
static int bounty_value = 0;
|
2023-01-09 18:20:51 +01:00
|
|
|
|
2023-01-06 23:25:16 +00:00
|
|
|
ImGui::SliderInt("Bounty", &bounty_value, 0, 10000);
|
|
|
|
ImGui::SameLine();
|
2023-01-09 18:20:51 +01:00
|
|
|
components::command_checkbox<"anonbounty">();
|
|
|
|
ImGui::SameLine();
|
|
|
|
components::button("Set", [] { troll::set_bounty_on_player(g_player_service->get_selected(), bounty_value, g.session.anonymous_bounty);});
|
2023-01-06 23:25:16 +00:00
|
|
|
|
2022-12-06 16:12:02 +00:00
|
|
|
ImGui::TreePop();
|
|
|
|
}
|
|
|
|
}
|
2023-01-09 18:20:51 +01:00
|
|
|
}
|