WT: Keine Bus-Job Nachricht mehr anzeigen

This commit is contained in:
hydrant
2020-05-11 16:52:28 +02:00
parent 8e2295a18f
commit 1af1d1d4aa
2 changed files with 4 additions and 2 deletions

View File

@@ -420,6 +420,7 @@ namespace ReallifeGamemode.Server.Job
//rt.BusLetzterCheckpoint() //rt.BusLetzterCheckpoint()
} }
} }
[RemoteEvent("BusLetzterCheckpoint")] [RemoteEvent("BusLetzterCheckpoint")]
public static void BusLetzterCheckpoint(Player player) public static void BusLetzterCheckpoint(Player player)
{ {

View File

@@ -153,6 +153,7 @@ namespace ReallifeGamemode.Server.Util
} }
//user.TriggerEvent("CLIENT:UnFreezeVehicle", veh); //user.TriggerEvent("CLIENT:UnFreezeVehicle", veh);
} }
[RemoteEvent("playerInCheckpoint")] [RemoteEvent("playerInCheckpoint")]
public void PlayerInCheckpoint(Player user) public void PlayerInCheckpoint(Player user)
{ {
@@ -303,12 +304,12 @@ namespace ReallifeGamemode.Server.Util
CheckPointHandle.RemovePlayerHandlerFromList(this.player); CheckPointHandle.RemovePlayerHandlerFromList(this.player);
DeleteCheckpoints(); DeleteCheckpoints();
player.SetData("HatRoute", false); player.SetData("HatRoute", false);
if (player.GetUser().JobId == 3) if (player.GetUser().JobId == 3 && player.HasData("Route"))
{ {
//PilotJob.payWage(player, 200); //PilotJob.payWage(player, 200);
PilotJob.PilotLetzterCheckpoint(player); PilotJob.PilotLetzterCheckpoint(player);
} }
if (player.GetUser().JobId == 4) else if (player.GetUser().JobId == 4 && player.HasData("Route"))
{ {
//BusDriverJob.payWage(player, 200); //BusDriverJob.payWage(player, 200);
//CheckPointHandle.BusCheckpoint(player); //CheckPointHandle.BusCheckpoint(player);