[*] Fix Autojail on death.

+ Added HQ message for wanteds
This commit is contained in:
Lukas Moungos
2019-07-19 21:23:58 +02:00
parent 80a04a2ee4
commit 409a8bc52a
4 changed files with 30 additions and 13 deletions

View File

@@ -13,8 +13,9 @@ namespace ReallifeGamemode.Server.Wanted
public static void Check_AutoWanted(Client killerPlayer, Client copPlayer)
{
User killer = killerPlayer.GetUser();
if(killer.FactionId != 1 || killer.FactionId != 3)
{
if (killer.FactionId == 1 || killer.FactionId == 3)
return;
User cop = copPlayer.GetUser();
if(cop.FactionId == 1 || cop.FactionId == 3)
{
@@ -25,7 +26,7 @@ namespace ReallifeGamemode.Server.Wanted
dbContext.SaveChanges();
}
}
}
}
}
}