added aunjail admin message

This commit is contained in:
2019-09-05 21:25:29 +02:00
parent 64c8bfe4b9
commit 8e425e2bf4

View File

@@ -78,7 +78,7 @@ namespace ReallifeGamemode.Server.Wanted
int timeMinutes = 0; int timeMinutes = 0;
if (((int)(user.JailTime / 60)) == 0) if (((int)(user.JailTime / 60)) == 0 && user.JailTime != 0)
{ {
timeMinutes = 1; timeMinutes = 1;
} }
@@ -182,7 +182,7 @@ namespace ReallifeGamemode.Server.Wanted
int timeMinutes = 0; int timeMinutes = 0;
if (((int)(user.JailTime / 60)) == 0) if (((int)(user.JailTime / 60)) == 0 && user.JailTime != 0)
{ {
timeMinutes = 1; timeMinutes = 1;
} else } else
@@ -253,6 +253,7 @@ namespace ReallifeGamemode.Server.Wanted
target.TriggerEvent("jailTime", 0); target.TriggerEvent("jailTime", 0);
ChatService.SendMessage(copPlayer, "!{#8181E9}HQ: Admin " + admin.Name + " hat " + user.Name + " aus dem Knast entlassen."); ChatService.SendMessage(copPlayer, "!{#8181E9}HQ: Admin " + admin.Name + " hat " + user.Name + " aus dem Knast entlassen.");
ChatService.SendMessage(target, "Admin " + admin.Name + " hat dich aus dem Knast entlassen"); ChatService.SendMessage(target, "Admin " + admin.Name + " hat dich aus dem Knast entlassen");
ChatService.SendMessage(admin, "Du hast " + user.Name + " administrativ aus dem Knast entlassen");
} }
} }