VehicleDeath Debug

This commit is contained in:
Mac_Slash
2020-05-04 23:29:28 +02:00
parent 904f1cf818
commit d5895d864d
3 changed files with 8 additions and 5 deletions

View File

@@ -578,7 +578,7 @@ namespace ReallifeGamemode.Server.Events
{
player.SendChatMessage("");
}*/
if (jV.JobId == 3 && player.GetUser().JobId == 3)
if (jV.JobId == 3 && player.GetUser().JobId == 3 && jV.GetJob().GetUsersInJob().Contains(player))
{
Job.PilotJob c = new Job.PilotJob();
if ((VehicleHash)jV.Model == VehicleHash.Cuban800 && !state)
@@ -606,7 +606,7 @@ namespace ReallifeGamemode.Server.Events
}
}
}
if (jV.JobId == 4 && player.GetUser().JobId == 4)
if (jV.JobId == 4 && player.GetUser().JobId == 4 && jV.GetJob().GetUsersInJob().Contains(player))
{
Job.BusDriverJob c = new Job.BusDriverJob();
if ((VehicleHash)jV.Model == VehicleHash.Bus && !state)