ok
This commit is contained in:
@@ -83,13 +83,14 @@ namespace ReallifeGamemode.Server.Job
|
||||
if (targetId == 0) return;
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
if(player.HasData("hasPassager")){
|
||||
User target = dbContext.Users.Where(u => u.Id == targetId).FirstOrDefault();
|
||||
target.Handmoney -= amount;
|
||||
player.GetUser(dbContext).Wage += amount;
|
||||
dbContext.SaveChanges();
|
||||
//target.Player.TriggerEvent("SERVER:SET_HANDMONEY", target.Handmoney);
|
||||
}
|
||||
}
|
||||
amount = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user