Day 254 : Fixes
This commit is contained in:
@@ -52,7 +52,7 @@ namespace ReallifeGamemode.Server.Wanted
|
||||
foreach (var playerCop in NAPI.Pools.GetAllPlayers())
|
||||
{
|
||||
User cop = playerCop.GetUser();
|
||||
if (cop.FactionId == 1 || cop.FactionId == 3)
|
||||
if (cop != null && (cop.FactionId == 1 || cop.FactionId == 3))
|
||||
{
|
||||
if (cop.GetData<bool>("duty") && playerCop.Position.DistanceTo2D(player.Position) <= 500)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user