2023-01-06 23:25:16 +00:00
|
|
|
#pragma once
|
2023-06-06 07:40:40 +00:00
|
|
|
#include "core/scr_globals.hpp"
|
2023-01-06 23:25:16 +00:00
|
|
|
#include "gta/enums.hpp"
|
|
|
|
#include "pointers.hpp"
|
2023-03-01 21:27:15 +00:00
|
|
|
#include "script_global.hpp"
|
|
|
|
#include "services/players/player_service.hpp"
|
2023-01-06 23:25:16 +00:00
|
|
|
|
|
|
|
namespace big::troll
|
|
|
|
{
|
2023-01-09 18:20:51 +01:00
|
|
|
inline void set_bounty_on_player(player_ptr target, int value, bool anonymous)
|
2023-01-06 23:25:16 +00:00
|
|
|
{
|
2023-03-01 21:27:15 +00:00
|
|
|
const size_t arg_count = 22;
|
|
|
|
int64_t args[arg_count] = {(int64_t)eRemoteEvent::Bounty,
|
|
|
|
self::id,
|
|
|
|
target->id(),
|
|
|
|
1,
|
|
|
|
value,
|
|
|
|
0,
|
|
|
|
anonymous ? 1 : 0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
2023-06-06 07:40:40 +00:00
|
|
|
*scr_globals::gsbd_fm_events.at(9).as<int*>(),
|
|
|
|
*scr_globals::gsbd_fm_events.at(10).as<int*>()};
|
2023-01-06 23:25:16 +00:00
|
|
|
|
2023-06-06 07:40:40 +00:00
|
|
|
g_pointers->m_gta.m_trigger_script_event(1, args, arg_count, -1);
|
2023-01-06 23:25:16 +00:00
|
|
|
}
|
|
|
|
|
2023-01-09 18:20:51 +01:00
|
|
|
}
|