Refresh ADutySystem
This commit is contained in:
@@ -248,6 +248,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
if(!player.IsAdminDuty())
|
||||
{
|
||||
ChatService.SendMessage(player, "~r~ Du bist nicht im Admin-Duty-Modus!");
|
||||
return;
|
||||
}
|
||||
if (!GlobalHelper.tsupAdmins.Contains(player))
|
||||
{
|
||||
|
||||
@@ -58,13 +58,20 @@ namespace ReallifeGamemode.Server.Events
|
||||
}
|
||||
if (vehicle.GetServerVehicle() is NoobVehicle nVeh)
|
||||
{
|
||||
if (player.GetUser().PlayedMinutes > 1800 && !player.IsAdminDuty())
|
||||
if (!player.IsAdminDuty())
|
||||
{
|
||||
if (player.GetUser().PlayedMinutes > 1800)
|
||||
{
|
||||
player.StopAnimation();
|
||||
player.SendNotification("~r~Du hast schon über 30 Spielstunden!", true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (player.IsAdminDuty())
|
||||
{
|
||||
player.SendNotification("~g~Freie Fahrt!", true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user