[+] New Feature in Wanted System

+ Autowanted System (only cop murder)
  * Fix: rejail after breakout

  * Fix: typo in /wa Command
This commit is contained in:
Lukas Moungos
2019-07-19 20:29:09 +02:00
parent fddc0d3730
commit 80a04a2ee4
4 changed files with 35 additions and 2 deletions

View File

@@ -112,8 +112,9 @@ namespace ReallifeGamemode.Server.Wanted
if (player.Position.DistanceTo2D(new Vector3(458.9842, -997.2126, 24.91485)) > 7 && Jailtime.ContainsKey(user.Id))
{
using (var dbContext = new DatabaseContext())
{
{
user = player.GetUser(dbContext);
user.JailTime = 0;
user.GiveWanteds(null, 50, "Knast-Ausbruch");
dbContext.SaveChanges();
Jailtime.Remove(user.Id);