[+] New Feature in Wanted System
+ Autowanted System (only cop murder) * Fix: rejail after breakout * Fix: typo in /wa Command
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user