try fix
This commit is contained in:
@@ -27,21 +27,18 @@ namespace ReallifeGamemode.Server.Job
|
||||
|
||||
private void RefuseCollectorJobJobStart(Player player)
|
||||
{
|
||||
if (!playersInThisJob.Contains(player))
|
||||
playersInThisJob.Add(player);
|
||||
|
||||
//setClothes
|
||||
}
|
||||
|
||||
private void RefuseCollectorJobJobStop(Player player)
|
||||
{
|
||||
if (playersInThisJob.Contains(player))
|
||||
playersInThisJob.Remove(player);
|
||||
|
||||
//removeClothes and replace with old
|
||||
MuellmannJobBeenden(player);
|
||||
}
|
||||
|
||||
|
||||
private List<Player> playersInThisJob = new List<Player>();
|
||||
public List<MuellmannData> muellmanData = new List<MuellmannData>();
|
||||
private List<Vector3> vector3s = new List<Vector3>();
|
||||
|
||||
@@ -167,8 +164,8 @@ namespace ReallifeGamemode.Server.Job
|
||||
[ServerEvent(Event.PlayerDisconnected)]
|
||||
private void SrvEvent_PlayerDc(Player player)
|
||||
{
|
||||
if (!GetPlayerInJob().Contains(player)) return;
|
||||
if (!playersInThisJob.Contains(player)) return;
|
||||
if (!player.IsLoggedIn() || !GetPlayerInJob().Contains(player)) return;
|
||||
|
||||
foreach (var data in muellmanData)
|
||||
{
|
||||
if (data.getDataFromClient(player) == null) continue;
|
||||
@@ -189,8 +186,8 @@ namespace ReallifeGamemode.Server.Job
|
||||
[ServerEvent(Event.PlayerDeath)]
|
||||
private void SrvEvent_PlayerDeath(Player player)
|
||||
{
|
||||
if (!GetPlayerInJob().Contains(player)) return;
|
||||
if (!playersInThisJob.Contains(player)) return;
|
||||
if (!player.IsLoggedIn() || !GetPlayerInJob().Contains(player)) return;
|
||||
|
||||
foreach (var data in muellmanData)
|
||||
{
|
||||
if (data.getDataFromClient(player) == null) continue;
|
||||
@@ -231,8 +228,7 @@ namespace ReallifeGamemode.Server.Job
|
||||
public void SrvEvent_PlayerEnterVehicle(Player player, Vehicle vehicle, sbyte seat)
|
||||
{
|
||||
Player target;
|
||||
if (!GetPlayerInJob().Contains(player)) return;
|
||||
if (!playersInThisJob.Contains(player)) return;
|
||||
if (!player.IsLoggedIn() || !GetPlayerInJob().Contains(player)) return;
|
||||
|
||||
if (vehicle.Model == (uint)Types.VehicleModel.Trash || vehicle.Model == (uint)Types.VehicleModel.Trash2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user