Files
reallife-gamemode/ReallifeGamemode.Server/Job/PilotJob.cs
2019-09-17 20:45:54 +02:00

35 lines
871 B
C#

using System.Collections.Generic;
using GTANetworkAPI;
using ReallifeGamemode.Server.Util;
namespace ReallifeGamemode.Server.Job
{
class PilotJob : JobBase
{
public override int Id => 3;
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);
}
}
}