fix(ScriptEventHandler): Filter rotate cam for current PlayerID
This commit is contained in:
parent
169f09cdaf
commit
b7db6b45dc
@ -1,4 +1,5 @@
|
|||||||
#include "hooking.hpp"
|
#include "hooking.hpp"
|
||||||
|
#include "gta_util.hpp"
|
||||||
|
|
||||||
namespace big
|
namespace big
|
||||||
{
|
{
|
||||||
@ -115,7 +116,9 @@ namespace big
|
|||||||
case eRemoteEvent::RotateCam:
|
case eRemoteEvent::RotateCam:
|
||||||
if (g->protections.script_events.rotate_cam)
|
if (g->protections.script_events.rotate_cam)
|
||||||
{
|
{
|
||||||
format_string(player_name, "Rotate Cam", notify.rotate_cam.log, notify.rotate_cam.notify);
|
if (CNetworkPlayerMgr* player_mgr = gta_util::get_network_player_mgr(); player_mgr != nullptr)
|
||||||
|
if (args[2] == player_mgr->m_local_net_player->m_player_id)
|
||||||
|
format_string(player_name, "Rotate Cam", notify.rotate_cam.log, notify.rotate_cam.notify);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user