Change Nametag
Clothes test
This commit is contained in:
@@ -264,7 +264,6 @@ namespace ReallifeGamemode.Server.Events
|
||||
}
|
||||
if (nearestDuty != null)// Duty Point
|
||||
{
|
||||
var nameTagColor = new Color(0, 0, 0);
|
||||
var factionId = user.FactionId;
|
||||
|
||||
if (user.GetData<bool>("duty") == false)
|
||||
@@ -282,7 +281,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
case 1:
|
||||
//nameTagColor = new Color(28, 134, 238);
|
||||
//player.TriggerEvent("setNameTag", JsonConvert.SerializeObject(new int[] { 28, 134, 238 }));
|
||||
//player.SetSharedData("nameTagColor", JsonConvert.SerializeObject(new int[] { 28, 134, 238}));
|
||||
player.SetSharedData("nameTagColor", factionId);
|
||||
player.SetSharedData("blipColor", 38);
|
||||
break;
|
||||
|
||||
@@ -290,14 +289,14 @@ namespace ReallifeGamemode.Server.Events
|
||||
case 2:
|
||||
//nameTagColor = new Color(255, 0, 0);
|
||||
//player.TriggerEvent("setNameTag", JsonConvert.SerializeObject(new int[] { 255, 0, 0 }));
|
||||
//player.SetSharedData("nameTagColor", new int[] { 255, 0, 0});
|
||||
player.SetSharedData("nameTagColor", factionId);
|
||||
player.SetSharedData("blipColor", 79);
|
||||
break;
|
||||
|
||||
//FBI
|
||||
case 3:
|
||||
//nameTagColor = new Color(173, 0, 118);
|
||||
//player.SetSharedData("nameTagColor", new int[] { 173, 0, 118});
|
||||
player.SetSharedData("nameTagColor", factionId);
|
||||
player.SetSharedData("blipColor", 72);
|
||||
player.SetAccessories(2, 2, 0);
|
||||
break;
|
||||
@@ -333,7 +332,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
player.TriggerEvent("toggleDutyMode", false);
|
||||
Medic.UpdateDutyMedics(-1);
|
||||
player.SetSharedData("blipColor", 0);
|
||||
//player.SetSharedData("nameTagColor", new Color[255, 255, 255, 255]);
|
||||
player.SetSharedData("nameTagColor", 0);
|
||||
UpdateCharacterCloth.LoadCharacterDefaults(player);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,22 +104,22 @@ namespace ReallifeGamemode.Server.Events
|
||||
{
|
||||
case null:
|
||||
player.SetSharedData("blipColor", 0);
|
||||
//player.SetSharedData("nameTagColor", new int[] { 255, 255, 255 });
|
||||
player.SetSharedData("nameTagColor", 0);
|
||||
break;
|
||||
|
||||
case 0:
|
||||
player.SetSharedData("blipColor", 0);
|
||||
//player.SetSharedData("nameTagColor", new int[] { 255, 255, 255 });
|
||||
player.SetSharedData("nameTagColor", 0);
|
||||
break;
|
||||
|
||||
case 8:
|
||||
player.SetSharedData("blipColor", 83);
|
||||
//player.SetSharedData("nameTagColor", new int[]{171, 0, 207});
|
||||
player.SetSharedData("nameTagColor", user.FactionId);
|
||||
break;
|
||||
|
||||
case 7:
|
||||
player.SetSharedData("blipColor", 52);
|
||||
//player.SetSharedData("nameTagColor", new int[] { 0, 54, 0});
|
||||
player.SetSharedData("nameTagColor", user.FactionId);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
@@ -127,7 +127,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
break;
|
||||
case 9:
|
||||
player.SetSharedData("blipColor", 25);
|
||||
//player.SetSharedData("nameTagColor", new int[] { 0, 166, 133});
|
||||
player.SetSharedData("nameTagColor", user.FactionId);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user