Added Faction Color to Player Blips for Trucker, Ballas and Grove.

This commit is contained in:
Lukas Moungos
2019-12-15 13:52:06 +01:00
parent 9eac853a32
commit c90420ec16
6 changed files with 87 additions and 8 deletions

View File

@@ -290,7 +290,25 @@ namespace ReallifeGamemode.Server.Commands
}
ChatService.SendMessage(target, "!{#8181E9}Deine Akte wurde von " + player.Name + " gelöscht. Grund: " + reason);
ChatService.BroadcastFaction("!{#8181E9}HQ: Die Akte von " + target.Name + " wurde von " + player.Name + " gelöscht. Grund: " + reason + ".", new List<int>() { 1, 3 });
if (targetUser.Faction != null)
{
switch (targetUser.Faction.Name)
{
case "Ballas":
target.SetSharedData("blipColor", 83);
break;
case "Grove":
target.SetSharedData("blipColor", 52);
break;
case "Trucker":
target.SetSharedData("blipColor", 5);
break;
}
}
else
{
target.SetSharedData("blipColor", 0);
}
targetUser.Wanteds = 0;
dbContext.SaveChanges();
}