LSPD/FIB: Fix einsperren
This commit is contained in:
@@ -142,7 +142,7 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
|
|
||||||
bool copNearby = NAPI.Pools.GetAllPlayers().Any(u => u.IsDuty() && u.IsAlive() && u.Position.DistanceToSquared(player.Position) <= 100 * 100);
|
bool copNearby = NAPI.Pools.GetAllPlayers().Any(u => u.IsDuty() && u.IsAlive() && u.Position.DistanceToSquared(player.Position) <= 100 * 100);
|
||||||
|
|
||||||
if (user.Wanteds > 0 && player.HasData("GotInsideOfTurf") && !player.GetData<bool>("GotInsideOfTurf"))
|
if (user.Wanteds > 0 && (!player.HasData("GotInsideOfTurf") || !player.GetData<bool>("GotInsideOfTurf")))
|
||||||
{
|
{
|
||||||
if (copNearby)
|
if (copNearby)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user