fix bus and pilot

This commit is contained in:
2021-04-11 01:36:39 +02:00
parent fdd7b58857
commit b6885fd884
3 changed files with 6 additions and 2 deletions

View File

@@ -449,6 +449,7 @@ namespace ReallifeGamemode.Server.Job
else if (type == PROFESSIONAL)
playerRoutePair3.Remove(player.Name);
playerRouteCurrent.Remove(player.Name);
BusDriverJob job = JobManager.GetJob<BusDriverJob>();
StartBusRoute(player, type);
}, delayTime: 10000);

View File

@@ -23,6 +23,7 @@ namespace ReallifeGamemode.Server.Job
private static readonly List<Player> jobPlayer = new List<Player>();
public static Dictionary<Player, Vehicle> playerVehiclePair = new Dictionary<Player, Vehicle>();
public static List<Player>
public abstract int Id { get; }

View File

@@ -24,8 +24,8 @@ namespace ReallifeGamemode.Server.Job
public const string INTERMEDIATE = "Fortgeschrittener";
public const string PROFESSIONAL = "Profi";
public const int WAGE_BEGINNER = 350;
public const int WAGE_INTERMEDIATE = 500;
public const int WAGE_BEGINNER = 300;
public const int WAGE_INTERMEDIATE = 750;
public const uint VEHICLE_BEGINNER = (uint)VehicleHash.Cuban800;
public const uint VEHICLE_INTERMEDIATE = (uint)VehicleHash.Velum2;
@@ -275,6 +275,8 @@ namespace ReallifeGamemode.Server.Job
return;
}
playerRouteCurrent.Remove(player.Name);
StartPilotRoute(player, skill);
}