busroute only in bus job

This commit is contained in:
hydrant
2019-09-12 19:35:59 +02:00
parent 774129c01c
commit 063ced7b47
2 changed files with 18 additions and 10 deletions

View File

@@ -13,5 +13,23 @@ namespace ReallifeGamemode.Server.Job
public override string Name => "Busfahrer";
public override bool NeedVehicleToStart => true;
public BusDriverJob()
{
JobStart += BusDriverJob_JobStart;
}
private void BusDriverJob_JobStart(Client player)
{
List<Vector3> list = new List<Vector3>();
list.Add(new Vector3(-105.5951, -1684.548, 29.23948));
list.Add(new Vector3(-1056.246, -2552.576, 13.66063));
list.Add(new Vector3(200.3088, -1978.828, 19.3329));
list.Add(new Vector3(358.6138, -1785.821, 28.92113));
list.Add(new Vector3(281.8594, -1462.503, 29.13148));
list.Add(new Vector3(77.72239, -1212.086, 29.12294));
list.Add(new Vector3(218.1398, -850.9549, 30.16619));
CheckPointHandle.startCheckPointRoute(player, list);
}
}
}

View File

@@ -37,16 +37,6 @@ namespace ReallifeGamemode.Server.Job
ChatService.SendMessage(player, $"~y~[JOB]~s~ Du hast deinen Job ~o~{this.Name}~s~ gestartet.");
JobStart?.Invoke(player);
List<Vector3> list = new List<Vector3>();
list.Add(new Vector3(-105.5951, -1684.548, 29.23948));
list.Add(new Vector3(-1056.246, -2552.576, 13.66063));
list.Add(new Vector3(200.3088, -1978.828, 19.3329));
list.Add(new Vector3(358.6138, -1785.821, 28.92113));
list.Add(new Vector3(281.8594, -1462.503, 29.13148));
list.Add(new Vector3(77.72239, -1212.086, 29.12294));
list.Add(new Vector3(218.1398, -850.9549, 30.16619));
CheckPointHandle.startCheckPointRoute(player, list);
}
public void StopJob(Client player, bool quit = false)