mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-23 17:12:35 +08:00
@ -36,17 +36,21 @@ namespace big
|
||||
}
|
||||
}
|
||||
|
||||
if (kick)
|
||||
if (kick)
|
||||
{
|
||||
g_fiber_pool->queue_job([player] {
|
||||
|
||||
dynamic_cast<player_command*>(command::get(RAGE_JOAAT("bailkick")))->call(player, {});
|
||||
dynamic_cast<player_command*>(command::get(RAGE_JOAAT("nfkick")))->call(player, {});
|
||||
script::get_current()->yield(700ms);
|
||||
dynamic_cast<player_command*>(command::get(RAGE_JOAAT("breakup")))->call(player, {});
|
||||
if(g_player_service->get_self()->is_host())
|
||||
dynamic_cast<player_command*>(command::get(RAGE_JOAAT("breakup")))->call(player, {}),
|
||||
NETWORK::NETWORK_SESSION_KICK_PLAYER(player->id());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void reaction::process(player_ptr player)
|
||||
{
|
||||
if (!player->is_valid())
|
||||
|
Reference in New Issue
Block a user