kein duty wenn in fahrzeug
This commit is contained in:
@@ -195,7 +195,7 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
JailReleasePoint nearestJailReleasePoint = PositionManager.JailReleasePoints.Find(j => j.Position.DistanceTo(player.Position) <= 1.6 && (user.FactionId == 1 || user.FactionId == 3) && user.GetData<bool>("duty"));
|
JailReleasePoint nearestJailReleasePoint = PositionManager.JailReleasePoints.Find(j => j.Position.DistanceTo(player.Position) <= 1.6 && (user.FactionId == 1 || user.FactionId == 3) && user.GetData<bool>("duty"));
|
||||||
|
|
||||||
|
|
||||||
if (nearestDuty != null)// Duty Point
|
if (nearestDuty != null && !player.InVehicle)// Duty Point
|
||||||
{
|
{
|
||||||
var nameTagColor = new Color(0, 0, 0);
|
var nameTagColor = new Color(0, 0, 0);
|
||||||
var factionId = user.FactionId;
|
var factionId = user.FactionId;
|
||||||
|
|||||||
Reference in New Issue
Block a user