evtl fix crash bei tot
This commit is contained in:
@@ -9,11 +9,19 @@ namespace ReallifeGamemode.Server.Wanted
|
||||
{
|
||||
public static void Check_AutoWanted(Player killerPlayer, Player copPlayer)
|
||||
{
|
||||
User killer = killerPlayer.GetUser();
|
||||
User killer = killerPlayer?.GetUser();
|
||||
if (killer == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (killer.FactionId == 1 || killer.FactionId == 3)
|
||||
return;
|
||||
|
||||
User cop = copPlayer.GetUser();
|
||||
User cop = copPlayer?.GetUser();
|
||||
if (cop == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (!cop.GetData<bool>("duty")) return;
|
||||
if (cop.FactionId == 1 || cop.FactionId == 3)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user