VehicleDeath Debug
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user