[+] Jail System
- add Escape
- add Jail In
- add Jail Timer
[+] Wanted System
- add Escape Timer
This commit is contained in:
@@ -12,6 +12,7 @@ using System.Threading;
|
||||
using GTANetworkAPI;
|
||||
using ReallifeGamemode.Server.Entities;
|
||||
using ReallifeGamemode.Server.Extensions;
|
||||
using ReallifeGamemode.Server.Models;
|
||||
using ReallifeGamemode.Server.Services;
|
||||
|
||||
namespace ReallifeGamemode.Server.Wanted
|
||||
@@ -68,7 +69,12 @@ namespace ReallifeGamemode.Server.Wanted
|
||||
if (waTimer[user.Id] <= 0)
|
||||
{
|
||||
ResetWantedTimeToElapse(player);
|
||||
user.Wanteds -= 1;
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
player.GetUser(dbContext).Wanteds -= 1;
|
||||
dbContext.SaveChanges();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!isNearCop)
|
||||
|
||||
Reference in New Issue
Block a user