added pilot job

This commit is contained in:
2019-09-16 15:05:23 +02:00
parent d8cddb3411
commit b3d3d4550d
5 changed files with 59 additions and 14 deletions

View File

@@ -1,6 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
using GTANetworkAPI;
using ReallifeGamemode.Server.Util;
using Newtonsoft.Json;
using GTANetworkAPI;
using ReallifeGamemode.Server.Services;
namespace ReallifeGamemode.Server.Job
{
@@ -11,5 +16,24 @@ namespace ReallifeGamemode.Server.Job
public override string Name => "Pilot";
public override bool NeedVehicleToStart => true;
private readonly IReadOnlyCollection<Vector3> Route1 = new List<Vector3>
{
new Vector3(-1059.862, -3100.353, 13.94444),
new Vector3(1690.651, 3246.769, 40.87084),
new Vector3(-2376.512, 3063.054, 32.82592),
new Vector3(2056.1, 4774.556, 4106039),
new Vector3(-1059.862, -3100.353, 13.94444),
}.AsReadOnly();
public PilotJob()
{
JobStart += PilotJob_JobStart;
}
private void PilotJob_JobStart(Client player)
{
CheckPointHandle.StartCheckPointRoute(player, Route1, 0, 6);
}
}
}