Merge branch 'develop' of ssh://development.life-of-german.org:451/log-gtav/reallife-gamemode into develop
This commit is contained in:
@@ -1402,6 +1402,7 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
}
|
}
|
||||||
target.TriggerEvent("onPlayerRevived");
|
target.TriggerEvent("onPlayerRevived");
|
||||||
target.SendNotification("Du wurdest von Admin ~y~" + player.Name + "~s~ wiederbelebt.");
|
target.SendNotification("Du wurdest von Admin ~y~" + player.Name + "~s~ wiederbelebt.");
|
||||||
|
ChatService.BroadcastFaction("Info: " + "Der Auftrag von " + target.Name + " wurde entfernt (Administrativ wiederbelebt)", new List<int>() { 2 });
|
||||||
target.SetData("isDead", false);
|
target.SetData("isDead", false);
|
||||||
using (var dbContext = new DatabaseContext())
|
using (var dbContext = new DatabaseContext())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -408,6 +408,31 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
|
|
||||||
#region Staatsfraktionen (LSPD / FBI) Commands
|
#region Staatsfraktionen (LSPD / FBI) Commands
|
||||||
|
|
||||||
|
[Command("m", "~m~Benutzung: ~s~/m [Message]")]
|
||||||
|
public void CmdFactionMegaphone(Player player, String message)
|
||||||
|
{
|
||||||
|
User user = player.GetUser();
|
||||||
|
if (user == null || (user.FactionId != 1 && user.FactionId != 3))
|
||||||
|
{
|
||||||
|
ChatService.NotAuthorized(player);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!player.IsDuty())
|
||||||
|
{
|
||||||
|
ChatService.ErrorMessage(player, "Du bist nicht im Dienst");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!player.IsInVehicle)
|
||||||
|
{
|
||||||
|
ChatService.ErrorMessage(player, "Du bist nicht in einem Fahrzeug");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
ChatService.SendInRange(player.Position, 15, "!{#FFFF00}[" + player.GetUser().Faction.Name + " " + player.Name + ": !{#FFFF00}" + message + "]");
|
||||||
|
}
|
||||||
|
|
||||||
[Command("cuff", "~m~Benutzung: ~s~/cuff")]
|
[Command("cuff", "~m~Benutzung: ~s~/cuff")]
|
||||||
public void CmdFactionCuff(Player player)
|
public void CmdFactionCuff(Player player)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -62,6 +62,13 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
{
|
{
|
||||||
ChatService.BroadcastAdmin("!{#FFFF00}*** " + player.Name + " hat den Server verlassen", AdminLevel.MAPPING);
|
ChatService.BroadcastAdmin("!{#FFFF00}*** " + player.Name + " hat den Server verlassen", AdminLevel.MAPPING);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!player.HasData("isDead") || !player.GetData<bool>("isDead"))
|
||||||
|
{
|
||||||
|
ChatService.BroadcastFaction("Info: " + "Der Auftrag von " + player.Name + " wurde entfernt (Ausgeloggt)", new List<int>() { 2 });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TaxiDriverJob taxiJob = JobManager.GetJob<TaxiDriverJob>();
|
TaxiDriverJob taxiJob = JobManager.GetJob<TaxiDriverJob>();
|
||||||
TaxiContract taxiContract = taxiJob.TaxiContracts.Where(t => t.Name == player.Name).FirstOrDefault();
|
TaxiContract taxiContract = taxiJob.TaxiContracts.Where(t => t.Name == player.Name).FirstOrDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user