Refresh ADutySystem

This commit is contained in:
Mac_Slash
2020-04-21 15:17:34 +02:00
parent f5a40c67b5
commit 034bc51a10
2 changed files with 12 additions and 4 deletions

View File

@@ -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))
{

View File

@@ -58,11 +58,18 @@ namespace ReallifeGamemode.Server.Events
}
if (vehicle.GetServerVehicle() is NoobVehicle nVeh)
{
if (player.GetUser().PlayedMinutes > 1800 && !player.IsAdminDuty())
if (!player.IsAdminDuty())
{
player.StopAnimation();
player.SendNotification("~r~Du hast schon über 30 Spielstunden!", true);
return;
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);
}
}
}