überflüssiges arg bei error-notification raus
This commit is contained in:
@@ -38,7 +38,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
return;
|
||||
}
|
||||
player.StopAnimation();
|
||||
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!", true);
|
||||
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -47,7 +47,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
if (jveh.JobId != player.GetUser().JobId && !(u.IsAdmin(AdminLevel.HEADADMIN) && player.IsAdminDuty()))
|
||||
{
|
||||
player.StopAnimation();
|
||||
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!", true);
|
||||
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!");
|
||||
return;
|
||||
}
|
||||
else if (u.IsAdmin(AdminLevel.HEADADMIN) && player.IsAdminDuty())
|
||||
@@ -90,13 +90,13 @@ namespace ReallifeGamemode.Server.Events
|
||||
if (!player.HasData("ActiveSchool") && !(u.IsAdmin(AdminLevel.HEADADMIN) && player.IsAdminDuty()))
|
||||
{
|
||||
player.StopAnimation();
|
||||
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!", true);
|
||||
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!");
|
||||
return;
|
||||
}
|
||||
if (sVeh.SchoolId != player.GetData<int>("ActiveSchool"))
|
||||
{
|
||||
player.StopAnimation();
|
||||
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!", true);
|
||||
NotificationService.SendErrorNotification(player, "Du darfst dieses Fahrzeug nicht benutzen!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -107,7 +107,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
if (player.GetUser().PlayedMinutes > 1800)
|
||||
{
|
||||
player.StopAnimation();
|
||||
NotificationService.SendErrorNotification(player, "Du hast schon über 30 Spielstunden!", true);
|
||||
NotificationService.SendErrorNotification(player, "Du hast schon über 30 Spielstunden!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -122,13 +122,13 @@ namespace ReallifeGamemode.Server.Events
|
||||
if (player.GetUser().PlayedMinutes > 1800)
|
||||
{
|
||||
player.StopAnimation();
|
||||
NotificationService.SendErrorNotification(player, "Du hast schon über 30 Spielstunden!", true);
|
||||
NotificationService.SendErrorNotification(player, "Du hast schon über 30 Spielstunden!");
|
||||
return;
|
||||
}
|
||||
if (player.GetData<bool>("HatNoobSpawnVehicle") == true)
|
||||
{
|
||||
player.StopAnimation();
|
||||
NotificationService.SendErrorNotification(player, "Du hast bereits einen Roller!", true);
|
||||
NotificationService.SendErrorNotification(player, "Du hast bereits einen Roller!");
|
||||
return;
|
||||
}
|
||||
else
|
||||
@@ -224,7 +224,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
if (player.GetUser().PlayedMinutes > 1800)
|
||||
{
|
||||
player.StopAnimation();
|
||||
NotificationService.SendErrorNotification(player, "Du hast schon über 30 Spielstunden!", true);
|
||||
NotificationService.SendErrorNotification(player, "Du hast schon über 30 Spielstunden!");
|
||||
return;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1044,7 +1044,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
|
||||
if (NAPI.Entity.GetEntityVelocity(v).Length() > 1 && v.Class != 16)
|
||||
{
|
||||
NotificationService.SendErrorNotification(player, "Der Motor kann nur im Stand betätigt werden", true);
|
||||
NotificationService.SendErrorNotification(player, "Der Motor kann nur im Stand betätigt werden");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
|
||||
if (NAPI.Entity.GetEntityVelocity(v).Length() > 1 && v.Class != 16)
|
||||
{
|
||||
NotificationService.SendErrorNotification(player, "Der Motor kann nur im Stand betätigt werden", true);
|
||||
NotificationService.SendErrorNotification(player, "Der Motor kann nur im Stand betätigt werden");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user