set blip color in one function
This commit is contained in:
@@ -491,40 +491,12 @@ 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 });
|
||||
target.SetSharedData("blipColor", 0);
|
||||
switch (targetUser.FactionId)
|
||||
{
|
||||
case null:
|
||||
target.SetSharedData("blipColor", 0);
|
||||
target.SetSharedData("nameTagColor", 0);
|
||||
break;
|
||||
|
||||
case 0:
|
||||
target.SetSharedData("blipColor", 0);
|
||||
target.SetSharedData("nameTagColor", 0);
|
||||
break;
|
||||
|
||||
case 8:
|
||||
target.SetSharedData("blipColor", 83);
|
||||
target.SetSharedData("nameTagColor", 8);
|
||||
break;
|
||||
|
||||
case 7:
|
||||
target.SetSharedData("blipColor", 52);
|
||||
target.SetSharedData("nameTagColor", 7);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
target.SetSharedData("blipColor", 5);
|
||||
target.SetSharedData("nameTagColor", 4);
|
||||
break;
|
||||
case 9:
|
||||
target.SetSharedData("blipColor", 25);
|
||||
target.SetSharedData("nameTagColor", 9);
|
||||
break;
|
||||
}
|
||||
|
||||
target.TriggerEvent("jailTime", 0);
|
||||
targetUser.Wanteds = 0;
|
||||
|
||||
targetUser.SetBlipAndNametagColor();
|
||||
|
||||
dbContext.SaveChanges();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user