blips und nametag color

This commit is contained in:
hydrant
2021-04-05 00:16:06 +02:00
parent 7b130c6e15
commit 37555aacd3
3 changed files with 12 additions and 13 deletions

View File

@@ -1493,30 +1493,30 @@ namespace ReallifeGamemode.Server.Commands
{
case null:
target.SetSharedData("blipColor", 0);
player.SetSharedData("nameTagColor", 0);
target.SetSharedData("nameTagColor", 0);
break;
case 0:
player.SetSharedData("nameTagColor", 0);
target.SetSharedData("nameTagColor", 0);
break;
case 8:
player.SetSharedData("nameTagColor", 8);
target.SetSharedData("nameTagColor", 8);
break;
case 7:
player.SetSharedData("nameTagColor", 7);
target.SetSharedData("nameTagColor", 7);
break;
case 4:
player.SetSharedData("nameTagColor", 4);
target.SetSharedData("nameTagColor", 4);
break;
case 9:
player.SetSharedData("nameTagColor", 9);
target.SetSharedData("nameTagColor", 9);
break;
}
target.TriggerEvent("jailTime", 0);
if (targetUser.FactionId != null) player.SetSharedData("nameTagColor", targetUser.FactionId);
if (targetUser.FactionId != null) target.SetSharedData("nameTagColor", targetUser.FactionId);
targetUser.Wanteds = 0;
dbContext.SaveChanges();
}
@@ -2452,7 +2452,7 @@ namespace ReallifeGamemode.Server.Commands
{
case null:
target.SetSharedData("blipColor", 0);
player.SetSharedData("nameTagColor", 0);
target.SetSharedData("nameTagColor", 0);
break;
case 0:
@@ -2475,7 +2475,7 @@ namespace ReallifeGamemode.Server.Commands
break;
}
if (u.FactionId != null) player.SetSharedData("nameTagColor", u.FactionId);
if (u.FactionId != null) target.SetSharedData("nameTagColor", u.FactionId);
dbContext.SaveChanges();
}
}
@@ -2522,7 +2522,7 @@ namespace ReallifeGamemode.Server.Commands
{
case null:
target.SetSharedData("blipColor", 0);
player.SetSharedData("nameTagColor", 0);
target.SetSharedData("nameTagColor", 0);
break;
case 8:
@@ -2540,7 +2540,7 @@ namespace ReallifeGamemode.Server.Commands
target.SetSharedData("blipColor", 25);
break;
}
if (u.FactionId != null) player.SetSharedData("nameTagColor", u.FactionId);
if (u.FactionId != null) target.SetSharedData("nameTagColor", u.FactionId);
dbContext.SaveChanges();
}
}