WT: Keine Bus-Job Nachricht mehr anzeigen
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user