Commented Task Sorting
This commit is contained in:
@@ -108,7 +108,7 @@ mp.events.add("showMedicTasks", (type, taskList) => {
|
||||
globalData.Interaction = true;
|
||||
switch (type) {
|
||||
case 0:
|
||||
reviveTaskMenu = new Menu("Revives", "Sortierung: ~g~" + sortText + " ~y~[NUM 5]", new Point(0, screenRes.y / 2));
|
||||
reviveTaskMenu = new Menu("Revives", "\u00c4lteste zu erst", new Point(0, screenRes.y / 2));
|
||||
let aTask;
|
||||
for (var i = 0; i < tasks.length; i++) {
|
||||
if (tasks[i].MedicName === "none") {
|
||||
@@ -168,7 +168,7 @@ mp.events.add("sortFactionTasks", (sortByKey) => {
|
||||
if (firstSorting) {
|
||||
sortText = "Nach Uhrzeit";
|
||||
firstSorting = false;
|
||||
mp.gui.chat.push("Init Sort");
|
||||
//mp.gui.chat.push("Init Sort");
|
||||
return;
|
||||
} else {
|
||||
if (sortByKey) {
|
||||
|
||||
@@ -34,11 +34,11 @@ mp.keys.bind(0x26, false, function () {
|
||||
});
|
||||
|
||||
//RIGHT ARROW (Interaktion mit anderen Spielern)
|
||||
mp.keys.bind(0x27, false, function () {
|
||||
if (!globalData.InChat && !showInv && !globalData.Interaction) {
|
||||
mp.events.callRemote("keyPress:RIGHT_ARROW");
|
||||
}
|
||||
});
|
||||
//mp.keys.bind(0x27, false, function () {
|
||||
// if (!globalData.InChat && !showInv && !globalData.Interaction) {
|
||||
// mp.events.callRemote("keyPress:RIGHT_ARROW");
|
||||
// }
|
||||
//});
|
||||
|
||||
//DOWN ARROW (Interaktion mit anderen Spielern)
|
||||
mp.keys.bind(0x28, false, function () {
|
||||
|
||||
@@ -62,12 +62,10 @@ namespace reallife_gamemode.Server.Events
|
||||
{
|
||||
if (!player.IsLoggedIn()) return;
|
||||
User user = player.GetUser();
|
||||
player.SendChatMessage("RIGHT_ARROW TRIGGER");
|
||||
switch (user.FactionId)
|
||||
{
|
||||
//LSFD
|
||||
case 2:
|
||||
player.SendChatMessage("RIGHT_ARROW TRIGGER - FACTION:~g~" + user.FactionId);
|
||||
player.TriggerEvent("showFactionInteraction", user.FactionId, user.GetFaction().Name, user.FactionLeader, Medic.ReviveTasks.Count.ToString(), Medic.HealTasks.Count.ToString(), Medic.FireTasks.Count.ToString());
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user