From 64c984e37455c4f37ae07bc5e998aeb026f8fe4f Mon Sep 17 00:00:00 2001 From: Yimura Date: Wed, 3 Feb 2021 19:44:39 +0100 Subject: [PATCH] wip(Griefing): Added clear wanted level --- BigBaseV2/src/gui/tab_bar/player/griefing.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/BigBaseV2/src/gui/tab_bar/player/griefing.cpp b/BigBaseV2/src/gui/tab_bar/player/griefing.cpp index 8bf2173f..0ed7a954 100644 --- a/BigBaseV2/src/gui/tab_bar/player/griefing.cpp +++ b/BigBaseV2/src/gui/tab_bar/player/griefing.cpp @@ -1,5 +1,6 @@ #include "gui/tab_bar.hpp" #include "pointers.hpp" +#include "script_global.hpp" namespace big { @@ -75,6 +76,18 @@ namespace big }QUEUE_JOB_END_CLAUSE } + if (ImGui::Button("Clear Wanted Level")) + { + QUEUE_JOB_BEGIN_CLAUSE() + { + int global = *script_global(1630317).at(g_selectedPlayer.id, 615).at(215).as(); + + int64_t args[3] = { RemoteEvents::ClearWantedLevel, g_selectedPlayer.id, global }; + + g_pointers->m_trigger_script_event(true, args, 3, 1 << g_selectedPlayer.id); + }QUEUE_JOB_END_CLAUSE + } + if (ImGui::Button("CEO Kick")) { QUEUE_JOB_BEGIN_CLAUSE() @@ -123,7 +136,7 @@ namespace big { QUEUE_JOB_BEGIN_CLAUSE() { - int64_t args[9] = { RemoteEvents::Teleport, g_selectedPlayer.id, 1, -1, 1, locations[g_temp.teleport_location].id, 0,0,0 }; // 1097312011 + int64_t args[9] = { RemoteEvents::Teleport, g_selectedPlayer.id, 1, -1, 1, locations[g_temp.teleport_location].id, 0,0,0 }; g_pointers->m_trigger_script_event(true, args, 9, 1 << g_selectedPlayer.id); }QUEUE_JOB_END_CLAUSE }