Files
TmpMenu/src/views/players/player/player_troll.cpp

28 lines
807 B
C++
Raw Normal View History

2022-12-06 16:12:02 +00:00
#include "views/view.hpp"
#include "util/teleport.hpp"
#include "util/vehicle.hpp"
#include "util/troll.hpp"
2022-12-06 16:12:02 +00:00
namespace big
{
void view::player_troll()
{
if (ImGui::TreeNode("Troll"))
{
components::player_command_button<"playertp">(g_player_service->get_selected());
2022-12-06 16:12:02 +00:00
ImGui::SameLine();
components::player_command_button<"bring">(g_player_service->get_selected());
2022-12-06 16:12:02 +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
static int bounty_value = 0;
ImGui::SliderInt("Bounty", &bounty_value, 0, 10000);
ImGui::SameLine();
components::button("Set", [] { troll::set_bounty_on_player(g_player_service->get_selected(), bounty_value);});
2022-12-06 16:12:02 +00:00
ImGui::TreePop();
}
}
}