Add Wanted propert to user entity
This commit is contained in:
@@ -66,6 +66,8 @@ namespace ReallifeGamemode.Server.Entities
|
||||
|
||||
public int? JobId { get; set; }
|
||||
|
||||
public int Wanteds { get; set; }
|
||||
|
||||
public FactionRank GetFactionRank()
|
||||
{
|
||||
using (var dbContext = new DatabaseContext())
|
||||
@@ -177,5 +179,14 @@ namespace ReallifeGamemode.Server.Entities
|
||||
key += "data_";
|
||||
Client.SetData(key, JsonConvert.SerializeObject(value));
|
||||
}
|
||||
|
||||
internal void GiveWanteds(Client cop, int amount, string reason)
|
||||
{
|
||||
if(this.Wanteds + amount > 40)
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user