40 lines
988 B
C#
40 lines
988 B
C#
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
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|