danke meister hidrant für die belehrung
This commit is contained in:
@@ -49,10 +49,6 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
GlobalHelper.DutyAdmins.Remove(player);
|
GlobalHelper.DutyAdmins.Remove(player);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
if (player.GetUser().IsAdmin(AdminLevel.MAPPING))
|
|
||||||
{
|
|
||||||
ChatService.BroadcastAdmin("!{#FFFF00}*** " + player.Name + " hat den Server verlassen", AdminLevel.MAPPING);
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
TaxiDriverJob taxiJob = JobManager.GetJob<TaxiDriverJob>();
|
TaxiDriverJob taxiJob = JobManager.GetJob<TaxiDriverJob>();
|
||||||
TaxiContract taxiContract = taxiJob.TaxiContracts.Where(t => t.Name == player.Name).FirstOrDefault();
|
TaxiContract taxiContract = taxiJob.TaxiContracts.Where(t => t.Name == player.Name).FirstOrDefault();
|
||||||
@@ -132,11 +128,16 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
user.PositionZ = pos.Z;
|
user.PositionZ = pos.Z;
|
||||||
saveUser.SaveChanges();
|
saveUser.SaveChanges();
|
||||||
user.Dead = player.HasData("isDead") ? (bool)player.GetData<bool>("isDead") : false;
|
user.Dead = player.HasData("isDead") ? (bool)player.GetData<bool>("isDead") : false;
|
||||||
}
|
|
||||||
|
|
||||||
if (player.GetUser().Wanteds > 0)
|
if (user.IsAdmin(AdminLevel.MAPPING))
|
||||||
{
|
{
|
||||||
ChatService.HQMessage("!{#FFFF00}** Der Straftäter " + player.GetUser().Name + " ist vom Radar verschwunden");
|
ChatService.BroadcastAdmin("!{#FFFF00}*** " + player.Name + " hat den Server verlassen", AdminLevel.MAPPING);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (user.Wanteds > 0)
|
||||||
|
{
|
||||||
|
ChatService.HQMessage("!{#FFFF00}** Der Straftäter " + player.GetUser().Name + " ist vom Radar verschwunden");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
player.SetData("isLoggedIn", false);
|
player.SetData("isLoggedIn", false);
|
||||||
|
|||||||
Reference in New Issue
Block a user