mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2026-10-11 09:48:03 +08:00
Toxic update (#641)
This commit is contained in:
1 parent
7f74a436d2
commit
a427ccb914
80 files changed
+3258
-411
No files matched your search
@@ -1,6 +1,7 @@
|
||||
#include "hooking.hpp"
|
||||
#include "gta_util.hpp"
|
||||
#include "util/session.hpp"
|
||||
#include "gta/net_game_event.hpp"
|
||||
#include <network/CNetGamePlayer.hpp>
|
||||
|
||||
namespace big
|
||||
@@ -292,6 +293,7 @@ namespace big
|
||||
}
|
||||
break;
|
||||
case eRemoteEvent::StartActivity:
|
||||
{
|
||||
eActivityType activity = static_cast<eActivityType>(args[2]);
|
||||
if (g->protections.script_events.start_activity)
|
||||
{
|
||||
@@ -335,6 +337,19 @@ namespace big
|
||||
}
|
||||
break;
|
||||
}
|
||||
case eRemoteEvent::InteriorControl:
|
||||
int interior = (int)args[2];
|
||||
if (interior < 0 || interior > 158) // the upper bound will change after an update
|
||||
{
|
||||
if (auto plyr = g_player_service->get_by_id(player->m_player_id))
|
||||
session::add_infraction(plyr, Infraction::TRIED_KICK_PLAYER);
|
||||
|
||||
format_string(player_name, "Null Function Kick", notify.null_function_kick.log, notify.null_function_kick.notify);
|
||||
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if (g->debug.logs.script_event.logs && (!g->debug.logs.script_event.filter_player || g->debug.logs.script_event.player_id == player->m_player_id))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user