39 lines
1021 B
C#
39 lines
1021 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using GTANetworkAPI;
|
|
using ReallifeGamemode.Server.Util;
|
|
|
|
namespace ReallifeGamemode.Server.Job
|
|
{
|
|
class BusDriverJob : JobBase
|
|
{
|
|
public override int Id => 4;
|
|
|
|
public override string Name => "Busfahrer";
|
|
|
|
public override bool NeedVehicleToStart => true;
|
|
|
|
private readonly IReadOnlyCollection<Vector3> list = new List<Vector3>
|
|
{
|
|
new Vector3(-105.5951, -1684.548, 29.23948),
|
|
new Vector3(-1056.246, -2552.576, 13.66063),
|
|
new Vector3(200.3088, -1978.828, 19.3329),
|
|
new Vector3(358.6138, -1785.821, 28.92113),
|
|
new Vector3(281.8594, -1462.503, 29.13148),
|
|
new Vector3(77.72239, -1212.086, 29.12294),
|
|
new Vector3(218.1398, -850.9549, 30.16619)
|
|
}.AsReadOnly();
|
|
|
|
public BusDriverJob()
|
|
{
|
|
JobStart += BusDriverJob_JobStart;
|
|
}
|
|
|
|
private void BusDriverJob_JobStart(Client player)
|
|
{
|
|
CheckPointHandle.StartCheckPointRoute(player, list);
|
|
}
|
|
}
|
|
}
|