Refresh ADutySystem
This commit is contained in:
@@ -248,6 +248,7 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
if(!player.IsAdminDuty())
|
if(!player.IsAdminDuty())
|
||||||
{
|
{
|
||||||
ChatService.SendMessage(player, "~r~ Du bist nicht im Admin-Duty-Modus!");
|
ChatService.SendMessage(player, "~r~ Du bist nicht im Admin-Duty-Modus!");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
if (!GlobalHelper.tsupAdmins.Contains(player))
|
if (!GlobalHelper.tsupAdmins.Contains(player))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -58,11 +58,18 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
}
|
}
|
||||||
if (vehicle.GetServerVehicle() is NoobVehicle nVeh)
|
if (vehicle.GetServerVehicle() is NoobVehicle nVeh)
|
||||||
{
|
{
|
||||||
if (player.GetUser().PlayedMinutes > 1800 && !player.IsAdminDuty())
|
if (!player.IsAdminDuty())
|
||||||
{
|
{
|
||||||
player.StopAnimation();
|
if (player.GetUser().PlayedMinutes > 1800)
|
||||||
player.SendNotification("~r~Du hast schon über 30 Spielstunden!", true);
|
{
|
||||||
return;
|
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