fixed blip colors

This commit is contained in:
Lukas Moungos
2019-12-15 14:10:45 +01:00
parent 3bad65f110
commit be65be7285
4 changed files with 39 additions and 19 deletions

View File

@@ -22,7 +22,21 @@ namespace ReallifeGamemode.Server.Wanted
User user = client.GetUser();
if (user.JailTime > 0)
{
client.SetSharedData("blipColor", 0);
switch (user.Faction.Id)
{
case 8:
client.SetSharedData("blipColor", 83);
break;
case 7:
client.SetSharedData("blipColor", 52);
break;
case 4:
client.SetSharedData("blipColor", 5);
break;
default:
client.SetSharedData("blipColor", 0);
break;
}
client.RemoveAllWeapons();
client.Health = 100;
client.Armor = 0;