Merge
This commit is contained in:
@@ -295,27 +295,8 @@ namespace ReallifeGamemode.Server.Events
|
||||
}
|
||||
switch (factionId)
|
||||
{
|
||||
//LSPD
|
||||
case 1:
|
||||
//nameTagColor = new Color(28, 134, 238);
|
||||
//player.TriggerEvent("setNameTag", JsonConvert.SerializeObject(new int[] { 28, 134, 238 }));
|
||||
player.SetSharedData("nameTagColor", factionId);
|
||||
player.SetSharedData("blipColor", 38);
|
||||
break;
|
||||
|
||||
//Medic
|
||||
case 2:
|
||||
//nameTagColor = new Color(255, 0, 0);
|
||||
//player.TriggerEvent("setNameTag", JsonConvert.SerializeObject(new int[] { 255, 0, 0 }));
|
||||
player.SetSharedData("nameTagColor", factionId);
|
||||
player.SetSharedData("blipColor", 6);
|
||||
break;
|
||||
|
||||
//FBI
|
||||
case 3:
|
||||
//nameTagColor = new Color(173, 0, 118);
|
||||
player.SetSharedData("nameTagColor", factionId);
|
||||
player.SetSharedData("blipColor", 63);
|
||||
player.SetAccessories(2, 2, 0);
|
||||
break;
|
||||
}
|
||||
@@ -349,10 +330,9 @@ namespace ReallifeGamemode.Server.Events
|
||||
player.SendNotification("Du bist nun ~r~außer Dienst.");
|
||||
player.TriggerEvent("toggleDutyMode", false);
|
||||
Medic.UpdateDutyMedics(-1);
|
||||
player.SetSharedData("blipColor", 0);
|
||||
player.SetSharedData("nameTagColor", 0);
|
||||
UpdateCharacterCloth.LoadCharacterDefaults(player);
|
||||
}
|
||||
user.SetBlipAndNametagColor();
|
||||
}
|
||||
|
||||
if (nearestWeapon != null) // Weapon Point
|
||||
@@ -515,6 +495,11 @@ namespace ReallifeGamemode.Server.Events
|
||||
foreach (Player target in NAPI.Pools.GetAllPlayers())
|
||||
{
|
||||
User c = target.GetUser();
|
||||
if(c == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (c.JailTime > 0)
|
||||
{
|
||||
criminals.Add(c.Name);
|
||||
|
||||
Reference in New Issue
Block a user