try fix blip colors

This commit is contained in:
Lukas Moungos
2019-12-15 14:03:35 +01:00
parent ce2b2f284e
commit 3bad65f110

View File

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