wt nachrichten angepasst
This commit is contained in:
@@ -401,7 +401,7 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
logger.LogInformation("Player {0} put the weapon deal item \"{1}\" (amount: {2}) in weapon rack of faction {3}", player.Name, weapon.WeaponModel, item.Amount, user.FactionId);
|
logger.LogInformation("Player {0} put the weapon deal item \"{1}\" (amount: {2}) in weapon rack of faction {3}", player.Name, weapon.WeaponModel, item.Amount, user.FactionId);
|
||||||
|
|
||||||
weapon.Ammount += item.Amount;
|
weapon.Ammount += item.Amount;
|
||||||
ChatService.SendMessage(player, item.Amount + " " + iItem.Name + " wurden im Waffenlager hinzugefügt.");
|
ChatService.SendMessage(player, $"~y~[WT] ~s~Du hast eine ~y~Kiste abgeladen ~s~(Inhalt: {item.Amount}x {iItem.Name}).");
|
||||||
unloadedWeaponPackage = true;
|
unloadedWeaponPackage = true;
|
||||||
context.Remove(item);
|
context.Remove(item);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,9 +128,9 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
|||||||
msg = "Die Waffenlieferung steht zur Abholung bereit";
|
msg = "Die Waffenlieferung steht zur Abholung bereit";
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatService.BroadcastFaction($"~y~[WAFFENDEAL]~s~ {msg}.", user.Faction);
|
ChatService.BroadcastFaction($"~y~[WT]~s~ {msg}.", user.Faction);
|
||||||
|
|
||||||
ChatService.SendMessage(client, "~y~[WAFFENDEAL]~s~ Steige in den ~y~Transporter ~s~ein und fahre zum Übergabepunkt.");
|
ChatService.SendMessage(client, "~y~[WT]~s~ Steig in den ~y~Transporter ~s~ein und fahre zum Übergabepunkt.");
|
||||||
fVeh.SetData("weaponDeal", true);
|
fVeh.SetData("weaponDeal", true);
|
||||||
InventoryManager.RemoveAllItemsfromVehicleInventory(fVeh);
|
InventoryManager.RemoveAllItemsfromVehicleInventory(fVeh);
|
||||||
Faction fac = context.Factions.Where(f => f.Id == user.FactionId).FirstOrDefault();
|
Faction fac = context.Factions.Where(f => f.Id == user.FactionId).FirstOrDefault();
|
||||||
@@ -147,15 +147,6 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
public static void WeaponDealTimer()
|
|
||||||
{
|
|
||||||
System.Timers.Timer timer = new System.Timers.Timer(60000);
|
|
||||||
timer.Start();
|
|
||||||
timer.Elapsed += Timer_Elapsed;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
public static void Timer_Elapsed()
|
public static void Timer_Elapsed()
|
||||||
{
|
{
|
||||||
using (var context = new DatabaseContext())
|
using (var context = new DatabaseContext())
|
||||||
@@ -259,8 +250,8 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
|||||||
InventoryManager.AddItemToVehicleInventory(fVeh, item7.ItemId, item7.Amount);
|
InventoryManager.AddItemToVehicleInventory(fVeh, item7.ItemId, item7.Amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatService.BroadcastFaction("~y~[WAFFENDEAL] ~w~Der Transporter wurde erfolgreich beladen.", new List<int>() { client.GetUser().Faction.Id });
|
ChatService.BroadcastFaction("~y~[WT] ~w~Der Transporter wurde erfolgreich beladen.", new List<int>() { client.GetUser().Faction.Id });
|
||||||
client.SendChatMessage("~y~[WAFFENDEAL] ~w~Fahre nun zu deiner Base zurück.");
|
client.SendChatMessage("~y~[WT] ~w~Fahre nun zu deiner Base zurück.");
|
||||||
BasePoints basePoints = new BasePoints();
|
BasePoints basePoints = new BasePoints();
|
||||||
basePoints.getbase(user.FactionId, client);
|
basePoints.getbase(user.FactionId, client);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user