Fix Sani 5

This commit is contained in:
VegaZ
2021-04-05 17:22:54 +02:00

View File

@@ -266,9 +266,13 @@ namespace ReallifeGamemode.Server.Extensions
nameTagColor = -1;
blipColor = 64;
}
else if (user.Faction != null)
else if (user.FactionId != null)
{
nameTagColor = user.FactionId.Value;
if(user.FactionId > 3 || (user.FactionId >= 1 && user.FactionId <= 3 && duty))
{
nameTagColor = user.FactionId.Value;
}
switch (user.FactionId)
{
case 1 when duty: