you must change the
gpSetOrderMissionMenu(player, true, 1, GetAvailableAirgroups(player), active.ToArray());
GamePlay.gpSetOrderMissionMenu(player, true, 2, GetAvailablePlanes(player, airgroup), active.ToArray());
the values are IDs and must be unique.
then add an Entry
to
private void setMainMenu(Player player)
{
GamePlay.gpSetOrderMissionMenu(player, false, 0, new string[] { "Change Aircraft", "Your entry"}, new bool[] { true, true});
}
and in public override void OnOrderMissionMenuSelected(Player player, int ID, int menuItemIndex)
you must integrate the new IDs in the if clauses and copy them to the other script.
|