Duty-Restriktionen /Klamotten /FS /Job
This commit is contained in:
@@ -507,6 +507,11 @@ namespace ReallifeGamemode.Server.Events
|
||||
}
|
||||
if (nearestClotheShopPoint != null)
|
||||
{
|
||||
if (player.GetData<bool>("duty") == true)
|
||||
{
|
||||
player.SendNotification("~r~Im Dienst kannst du keine Kleidung kaufen", false);
|
||||
return;
|
||||
}
|
||||
nearestClotheShopPoint.clotheShop.LoadShopNUI(player);
|
||||
}
|
||||
if (nearestItemShopPoint != null)
|
||||
@@ -547,6 +552,11 @@ namespace ReallifeGamemode.Server.Events
|
||||
}
|
||||
if (!job.GetUsersInJob().Contains(player))
|
||||
{
|
||||
if (player.GetData<bool>("duty") == true)
|
||||
{
|
||||
player.SendNotification("~r~Im Dienst kannst du keinen Job ausführen", false);
|
||||
return;
|
||||
}
|
||||
if (player.GetUser().JobId == 3)
|
||||
{
|
||||
if (nearestJobPoint.Skill > user.PilotSkill)
|
||||
|
||||
Reference in New Issue
Block a user