improve hqmessage
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user