[+] Add HQ - Chat for Cops

This commit is contained in:
Lukas Moungos
2019-07-20 12:55:10 +02:00
parent ddfaff34b6
commit 8b4796cd85
4 changed files with 49 additions and 11 deletions

View File

@@ -199,6 +199,11 @@ namespace ReallifeGamemode.Server.Finance
if (user.PaydayTimer <= 0)
{
Economy.SetPaycheck(player, user.Wage);
using (var dbContext = new DatabaseContext())
{
player.GetUser(dbContext).PaydayTimer = 60;
dbContext.SaveChanges();
}
return;
}
if (user.PaydayTimer > 0)
@@ -210,10 +215,7 @@ namespace ReallifeGamemode.Server.Finance
}
}
}
}
}
}
}