VegaZ
2021-04-17 18:22:31 +02:00
parent 9ee382d317
commit 3d249c3006
2 changed files with 11 additions and 5 deletions

View File

@@ -98,8 +98,9 @@ namespace ReallifeGamemode.Server.DrivingSchool
private static void EntityEnterBusinessColShape(ColShape colShape, Player client)
{
var user = client.GetUser();
if (client.IsInVehicle || !client.IsLoggedIn()) return;
if (client.GetData<bool>("duty") == true)
if (user.GetData<bool>("duty"))
{
client.SendNotification("~r~Im Dienst kannst du keinen Führerschein machen", false);
return;