fix(Natives): replace PLAYER_ID with GET_PLAYER_INDEX
This commit is contained in:
parent
08d7c1620d
commit
a98f4bf357
@ -9,22 +9,7 @@ namespace big
|
||||
{
|
||||
if (g.self.off_radar)
|
||||
{
|
||||
/*Player playerId = PLAYER::PLAYER_ID();
|
||||
|
||||
int off_radar[] = {
|
||||
(int)RemoteEvent::RemoteOffradar,
|
||||
playerId,
|
||||
NETWORK::GET_NETWORK_TIME(),
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
*script_global(1630816).at(playerId, 597).at(508).as<int*>()
|
||||
};
|
||||
|
||||
g_pointers->m_trigger_script_event(1, off_radar, 7, 1 << playerId);*/
|
||||
//SCRIPT::TRIGGER_SCRIPT_EVENT(1, off_radar, 7, 1 << playerId);
|
||||
|
||||
*script_global(2426865).at(PLAYER::PLAYER_ID(), 449).at(209).as<bool*>() = true;
|
||||
*script_global(2426865).at(PLAYER::GET_PLAYER_INDEX(), 449).at(209).as<int*>() = 1;
|
||||
*script_global(2441237).at(70).as<int*>() = NETWORK::GET_NETWORK_TIME() + 1;
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ namespace big
|
||||
{
|
||||
if (PAD::IS_DISABLED_CONTROL_PRESSED(0, 25))
|
||||
{
|
||||
PLAYER::DISABLE_PLAYER_FIRING(PLAYER::PLAYER_ID(), true);
|
||||
PLAYER::DISABLE_PLAYER_FIRING(PLAYER::GET_PLAYER_INDEX(), true);
|
||||
for (int control : controls)
|
||||
PAD::DISABLE_CONTROL_ACTION(0, control, true);
|
||||
|
||||
|
@ -16,7 +16,7 @@ namespace big
|
||||
{
|
||||
if (PAD::IS_DISABLED_CONTROL_PRESSED(0, 25))
|
||||
{
|
||||
PLAYER::DISABLE_PLAYER_FIRING(PLAYER::PLAYER_ID(), true);
|
||||
PLAYER::DISABLE_PLAYER_FIRING(PLAYER::GET_PLAYER_INDEX(), true);
|
||||
for (int control : controls)
|
||||
PAD::DISABLE_CONTROL_ACTION(0, control, true);
|
||||
|
||||
|
@ -22,7 +22,7 @@ namespace big
|
||||
// ZOOMED IN
|
||||
if (bGravityGun && PAD::IS_DISABLED_CONTROL_PRESSED(0, 25))
|
||||
{
|
||||
PLAYER::DISABLE_PLAYER_FIRING(PLAYER::PLAYER_ID(), true);
|
||||
PLAYER::DISABLE_PLAYER_FIRING(PLAYER::GET_PLAYER_INDEX(), true);
|
||||
for (int control : controls)
|
||||
PAD::DISABLE_CONTROL_ACTION(0, control, true);
|
||||
|
||||
|
@ -16,7 +16,7 @@ namespace big
|
||||
{
|
||||
if (PAD::IS_DISABLED_CONTROL_PRESSED(0, 25))
|
||||
{
|
||||
PLAYER::DISABLE_PLAYER_FIRING(PLAYER::PLAYER_ID(), true);
|
||||
PLAYER::DISABLE_PLAYER_FIRING(PLAYER::GET_PLAYER_INDEX(), true);
|
||||
for (int control : controls)
|
||||
PAD::DISABLE_CONTROL_ACTION(0, control, true);
|
||||
|
||||
|
@ -18,7 +18,7 @@ namespace big
|
||||
|
||||
if (PAD::IS_DISABLED_CONTROL_PRESSED(0, 25))
|
||||
{
|
||||
PLAYER::DISABLE_PLAYER_FIRING(PLAYER::PLAYER_ID(), true);
|
||||
PLAYER::DISABLE_PLAYER_FIRING(PLAYER::GET_PLAYER_INDEX(), true);
|
||||
for (int control : controls)
|
||||
PAD::DISABLE_CONTROL_ACTION(0, control, true);
|
||||
|
||||
|
@ -17,7 +17,7 @@ namespace big
|
||||
|
||||
if (PAD::IS_DISABLED_CONTROL_PRESSED(0, 25))
|
||||
{
|
||||
PLAYER::DISABLE_PLAYER_FIRING(PLAYER::PLAYER_ID(), true);
|
||||
PLAYER::DISABLE_PLAYER_FIRING(PLAYER::GET_PLAYER_INDEX(), true);
|
||||
for (int control : controls)
|
||||
PAD::DISABLE_CONTROL_ACTION(0, control, true);
|
||||
|
||||
|
@ -5,7 +5,7 @@ namespace big
|
||||
{
|
||||
bool hooks::report_cash_spawn_handler(__int64 creport_cash_spawn_event, CNetGamePlayer* source_player)
|
||||
{
|
||||
if (source_player->player_id == PLAYER::PLAYER_ID())
|
||||
if (source_player->player_id == PLAYER::GET_PLAYER_INDEX())
|
||||
{
|
||||
LOG(INFO) << "Blocked self report for spawning modded cash";
|
||||
|
||||
|
Reference in New Issue
Block a user