From b64c57ff40e07887ce9e65d809e0605b704c14e7 Mon Sep 17 00:00:00 2001 From: "Quentin E. / iDeath" Date: Fri, 30 Sep 2022 20:39:47 +0200 Subject: [PATCH] Implements #453 (#460) --- BigBaseV2/src/hooks/protections/script_event_handler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BigBaseV2/src/hooks/protections/script_event_handler.cpp b/BigBaseV2/src/hooks/protections/script_event_handler.cpp index 8a06a7f6..7292ee02 100644 --- a/BigBaseV2/src/hooks/protections/script_event_handler.cpp +++ b/BigBaseV2/src/hooks/protections/script_event_handler.cpp @@ -23,6 +23,14 @@ namespace big const auto& notify = g->notifications.script_event_handler; + // detect pasted menus setting args[1] to something other than PLAYER_ID() + if (*(int*)&args[1] != player->m_player_id && player->m_player_id != -1) + { + LOG(INFO) << "Hash = " << (int)args[0]; + format_string(player_name, "Wrong TSE sender", notify.ceo_kick.log, notify.ceo_kick.notify); + return true; + } + switch (hash) { case eRemoteEvent::Bounty: