fixed player blips

This commit is contained in:
Lukas Moungos
2019-12-15 14:23:59 +01:00
parent 8f6fe89a66
commit c2f5c9e039
4 changed files with 24 additions and 23 deletions

View File

@@ -22,8 +22,11 @@ namespace ReallifeGamemode.Server.Wanted
User user = client.GetUser();
if (user.JailTime > 0)
{
switch (user.Faction.Id)
switch (user.FactionId)
{
case null:
client.SetSharedData("blipColor", 0);
break;
case 8:
client.SetSharedData("blipColor", 83);
break;
@@ -33,9 +36,7 @@ namespace ReallifeGamemode.Server.Wanted
case 4:
client.SetSharedData("blipColor", 5);
break;
default:
client.SetSharedData("blipColor", 0);
break;
}
client.RemoveAllWeapons();
client.Health = 100;