fixes in jailtime
This commit is contained in:
@@ -76,18 +76,18 @@ namespace ReallifeGamemode.Server.Wanted
|
|||||||
Medic.RemoveTaskFromList(task);
|
Medic.RemoveTaskFromList(task);
|
||||||
client.Health = 100;
|
client.Health = 100;
|
||||||
|
|
||||||
int t = 0;
|
int timeMinutes = 0;
|
||||||
|
|
||||||
if (((int)(user.JailTime / 60)) == 0)
|
if (((int)(user.JailTime / 60)) == 0)
|
||||||
{
|
{
|
||||||
t = 1;
|
timeMinutes = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
t = (int)(user.JailTime / 60);
|
timeMinutes = (int)(user.JailTime / 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
client.TriggerEvent("jailTime", t);
|
client.TriggerEvent("jailTime", timeMinutes);
|
||||||
ChatService.SendMessage(client, "!{#FF614A}* Du bist nun im Gefängnis für " + jailTime + " Sekunden.");
|
ChatService.SendMessage(client, "!{#FF614A}* Du bist nun im Gefängnis für " + jailTime + " Sekunden.");
|
||||||
ChatService.BroadcastFaction("!{#8181E9}HQ: " + user.Name + " wurde ins Gefängnis geliefert.", new List<int>() { 1, 3 });
|
ChatService.BroadcastFaction("!{#8181E9}HQ: " + user.Name + " wurde ins Gefängnis geliefert.", new List<int>() { 1, 3 });
|
||||||
}
|
}
|
||||||
@@ -180,17 +180,17 @@ namespace ReallifeGamemode.Server.Wanted
|
|||||||
dbContext.SaveChanges();
|
dbContext.SaveChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
int t = 0;
|
int timeMinutes = 0;
|
||||||
|
|
||||||
if (((int)(user.JailTime / 60)) == 0)
|
if (((int)(user.JailTime / 60)) == 0)
|
||||||
{
|
{
|
||||||
t = 1;
|
timeMinutes = 1;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
t = (int)(user.JailTime / 60);
|
timeMinutes = (int)(user.JailTime / 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
player.TriggerEvent("jailTime", t);
|
player.TriggerEvent("jailTime", timeMinutes);
|
||||||
player.Health = 100;
|
player.Health = 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user