This commit is contained in:
hydrant
2020-08-04 20:09:25 +02:00
parent 6732dfb721
commit cf11eb463b

View File

@@ -132,6 +132,11 @@ namespace ReallifeGamemode.Server.Extensions
} }
User copUser = copPlayer.GetUser(); User copUser = copPlayer.GetUser();
if (copUser == null)
{
continue;
}
if (cop != null && (copUser.FactionId == 1 || copUser.FactionId == 3)) if (cop != null && (copUser.FactionId == 1 || copUser.FactionId == 3))
{ {
ChatService.SendMessage(copPlayer, "!{#8181E9}HQ: Straftat gemeldet von " + cop.Name + " mit Fahndungslevel " + amount + ". Straftäter: " + user.Name + "."); ChatService.SendMessage(copPlayer, "!{#8181E9}HQ: Straftat gemeldet von " + cop.Name + " mit Fahndungslevel " + amount + ". Straftäter: " + user.Name + ".");