Fix nametags

This commit is contained in:
VegaZ
2021-04-04 18:05:35 +02:00
parent 58dd14b816
commit f4cee09256
4 changed files with 41 additions and 15 deletions

View File

@@ -109,17 +109,14 @@ namespace ReallifeGamemode.Server.Events
case 0:
player.SetSharedData("blipColor", 0);
player.SetSharedData("nameTagColor", 0);
break;
case 8:
player.SetSharedData("blipColor", 83);
player.SetSharedData("nameTagColor", user.FactionId);
break;
case 7:
player.SetSharedData("blipColor", 52);
player.SetSharedData("nameTagColor", user.FactionId);
break;
case 4:
@@ -127,11 +124,10 @@ namespace ReallifeGamemode.Server.Events
break;
case 9:
player.SetSharedData("blipColor", 25);
player.SetSharedData("nameTagColor", user.FactionId);
break;
}
if(user.FactionId != null) player.SetSharedData("nameTagColor", user.FactionId);
if (user.CharacterId == null)
{