2022-12-06 16:12:02 +00:00
|
|
|
#include "util/teleport.hpp"
|
|
|
|
#include "util/toxic.hpp"
|
2023-03-01 21:27:15 +00:00
|
|
|
#include "views/view.hpp"
|
2022-12-06 16:12:02 +00:00
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void view::player_kick()
|
|
|
|
{
|
2023-02-01 19:46:33 +01:00
|
|
|
if (ImGui::TreeNode("KICK"_T.data()))
|
2022-12-06 16:12:02 +00:00
|
|
|
{
|
2023-03-01 21:27:15 +00:00
|
|
|
auto const is_session_host = [] {
|
|
|
|
return gta_util::get_network()->m_game_session_ptr->is_host();
|
|
|
|
};
|
2022-12-29 20:43:31 -05:00
|
|
|
|
2023-06-14 21:29:25 +00:00
|
|
|
//components::player_command_button<"breakup">(g_player_service->get_selected());
|
|
|
|
//ImGui::SameLine();
|
|
|
|
//components::command_checkbox<"breakupcheating">();
|
2023-02-04 16:35:18 +00:00
|
|
|
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"bailkick">(g_player_service->get_selected());
|
2023-01-22 21:57:32 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"nfkick">(g_player_service->get_selected());
|
2023-02-04 16:35:18 +00:00
|
|
|
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"oomkick">(g_player_service->get_selected());
|
2023-01-22 21:57:32 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"shkick">(g_player_service->get_selected());
|
2023-02-04 16:35:18 +00:00
|
|
|
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"endkick">(g_player_service->get_selected());
|
2023-02-04 16:35:18 +00:00
|
|
|
ImGui::SameLine();
|
2022-12-22 21:23:32 +00:00
|
|
|
components::player_command_button<"desync">(g_player_service->get_selected());
|
2022-12-06 16:12:02 +00:00
|
|
|
|
|
|
|
ImGui::TreePop();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|