improve hqmessage

This commit is contained in:
hydrant
2019-09-08 14:16:04 +02:00
parent eed5109b9f
commit 7bcc72e3cf
2 changed files with 3 additions and 10 deletions

View File

@@ -394,7 +394,7 @@ namespace ReallifeGamemode.Server.Commands
return;
}
ReallifeGamemode.Server.Wanted.Jail.Release_Jail_Admin(player, target);
Jail.Release_Jail_Admin(player, target);
}
[Command("a", "~m~Benutzung: ~s~/a [Nachricht]", GreedyArg = true)]

View File

@@ -78,14 +78,7 @@ namespace ReallifeGamemode.Server.Services
/// <param name="minLevel">Das mindest Admin Level, das für das Erhalten dieser Nachricht benötigt wird</param>
public static void HQMessage(string message)
{
foreach (var copPlayer in NAPI.Pools.GetAllPlayers())
{
User copUser = copPlayer.GetUser();
if ((copUser.FactionId == 1 || copUser.FactionId == 3))
{
ChatService.SendMessage(copPlayer, "!{#8181E9}HQ: " + message);
}
}
BroadcastFaction("!{#8181E9}HQ: " + message, new List<int>() { 1, 3 });
}
public static void BroadcastAdmin(string message, AdminLevel minLevel)