Fix Colors / Blips

This commit is contained in:
VegaZ
2021-04-05 02:18:58 +02:00
parent 47aa0b50ab
commit d214946ea9
2 changed files with 3 additions and 2 deletions

View File

@@ -290,7 +290,7 @@ namespace ReallifeGamemode.Server.Events
//nameTagColor = new Color(28, 134, 238);
//player.TriggerEvent("setNameTag", JsonConvert.SerializeObject(new int[] { 28, 134, 238 }));
player.SetSharedData("nameTagColor", factionId);
player.SetSharedData("blipColor", 38);
player.SetSharedData("blipColor", 26);
break;
//Medic
@@ -305,7 +305,7 @@ namespace ReallifeGamemode.Server.Events
case 3:
//nameTagColor = new Color(173, 0, 118);
player.SetSharedData("nameTagColor", factionId);
player.SetSharedData("blipColor", 72);
player.SetSharedData("blipColor", 38);
player.SetAccessories(2, 2, 0);
break;
}

View File

@@ -131,6 +131,7 @@ namespace ReallifeGamemode.Server.Extensions
dbUser.Wanteds = newWanteds;
dbContext.SaveChanges();
}
user.Player.SetSharedData("nameTagColor", -1);
user.Player.SetSharedData("blipColor", 64);
ChatService.SendMessage(user.Player, "!{#FF614A}Du hast ein Verbrechen begangen: " + reason + "" + (cop != null ? " | Gemeldet von: " + cop.Name + "." : ""));
ChatService.SendMessage(user.Player, " !{#FFFF00}Fahnundgslevel:~s~ " + newWanteds);