Änderung Busfahrer/Pilot Bugs fix siehe Forenbeitrag
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using GTANetworkAPI;
|
||||
using Newtonsoft.Json;
|
||||
@@ -398,13 +398,14 @@ namespace ReallifeGamemode.Server.Events
|
||||
{
|
||||
if (job.GetUsersInJob().Contains(player))
|
||||
{
|
||||
user.SetData("PilotenBase", 1);
|
||||
player.SetData("PilotenBase", 1);
|
||||
jobb.StopJob(player);
|
||||
return;
|
||||
}
|
||||
if (!job.GetUsersInJob().Contains(player))
|
||||
{
|
||||
user.SetData("PilotenBase", 1);
|
||||
player.SetData("PilotenBase", 1);
|
||||
player.SendChatMessage($"Debug PilotenJob PilotenBase1: {player.GetData<int>("PilotenBase")}");
|
||||
jobb.StartJobEvent(player);
|
||||
return;
|
||||
}
|
||||
@@ -413,13 +414,14 @@ namespace ReallifeGamemode.Server.Events
|
||||
{
|
||||
if (job.GetUsersInJob().Contains(player))
|
||||
{
|
||||
user.SetData("PilotenBase", 2);
|
||||
player.SetData("PilotenBase", 2);
|
||||
jobb.StopJob(player);
|
||||
return;
|
||||
}
|
||||
if (!job.GetUsersInJob().Contains(player))
|
||||
{
|
||||
user.SetData("PilotenBase", 2);
|
||||
player.SetData("PilotenBase", 2);
|
||||
player.SendChatMessage($"Debug PilotenJob PilotenBase2: {player.GetData<int>("PilotenBase")}");
|
||||
jobb.StartJobEvent(player);
|
||||
return;
|
||||
}
|
||||
@@ -576,14 +578,21 @@ namespace ReallifeGamemode.Server.Events
|
||||
{
|
||||
if (jV.JobId == 3)
|
||||
{
|
||||
player.SendChatMessage("Debug Pilot 1");
|
||||
Job.PilotJob c = new Job.PilotJob();
|
||||
if ((VehicleHash)jV.Model == VehicleHash.Cuban800 && !state)
|
||||
{
|
||||
player.SendChatMessage("Debug Pilot 2");
|
||||
if (!player.HasData("HatRoute") || player.GetData<bool>("HatRoute") == false)
|
||||
{
|
||||
player.SendChatMessage("Debug Pilot 3");
|
||||
player.SetData("HatRoute", true);
|
||||
c.StartPilotRoute(player, "RouteStart");
|
||||
}
|
||||
else
|
||||
{
|
||||
player.SendChatMessage("Debug Pilot 4");
|
||||
}
|
||||
}
|
||||
if ((VehicleHash)jV.Model == VehicleHash.Velum && !state || (VehicleHash)jV.Model == VehicleHash.Velum2 && !state)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user