Sending all kick methods (#1921)
This commit is contained in:
@ -187,17 +187,9 @@ namespace big
|
||||
}},
|
||||
{"KICK",
|
||||
[this] {
|
||||
static player_command* command = dynamic_cast<player_command*>(command::get(rage::consteval_joaat("nfkick")));
|
||||
static player_command* command1 = dynamic_cast<player_command*>(command::get(rage::consteval_joaat("shkick")));
|
||||
static player_command* command2 = dynamic_cast<player_command*>(command::get(rage::consteval_joaat("endkick")));
|
||||
static player_command* command3 = dynamic_cast<player_command*>(command::get(rage::consteval_joaat("desync")));
|
||||
static player_command* command4 = dynamic_cast<player_command*>(command::get(rage::consteval_joaat("breakup")));
|
||||
static player_command* command = dynamic_cast<player_command*>(command::get(rage::consteval_joaat("multikick")));
|
||||
command->call(ped::get_player_from_ped(m_handle), {});
|
||||
command1->call(ped::get_player_from_ped(m_handle), {});
|
||||
command2->call(ped::get_player_from_ped(m_handle), {});
|
||||
command3->call(ped::get_player_from_ped(m_handle), {});
|
||||
script::get_current()->yield(500ms);
|
||||
command4->call(ped::get_player_from_ped(m_handle), {});
|
||||
}},
|
||||
{"DISARM",
|
||||
[this] {
|
||||
|
@ -59,12 +59,7 @@ namespace big
|
||||
PED::SET_PED_ARMOUR(handle, s.m_ped_armor);
|
||||
}
|
||||
|
||||
if (s.does_squad_have_vehicle() && s.m_weapon_model != "WEAPON_UNARMED")
|
||||
{
|
||||
WEAPON::GIVE_WEAPON_TO_PED(handle, rage::joaat("WEAPON_MICROSMG"), 999, false, false);
|
||||
}
|
||||
|
||||
WEAPON::GIVE_WEAPON_TO_PED(handle, rage::joaat(s.m_weapon_model), 999, false, true);
|
||||
WEAPON::GIVE_WEAPON_TO_PED(handle, rage::joaat(s.m_weapon_model), 9999, false, true);
|
||||
PED::SET_PED_ACCURACY(handle, s.m_ped_accuracy);
|
||||
PED::SET_PED_COMBAT_ABILITY(handle, (int)s.m_combat_ability_level);
|
||||
ENTITY::SET_ENTITY_INVINCIBLE(handle, s.m_ped_invincibility);
|
||||
@ -336,4 +331,4 @@ namespace big
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user