fix handmoney (SET:HANDMONEY auskommentiert)

This commit is contained in:
Michael
2020-07-05 16:46:59 +02:00
parent cffcc5659a
commit dd5292e3db
8 changed files with 26 additions and 15 deletions

View File

@@ -1,4 +1,9 @@
using GTANetworkAPI;
/**
* @overview Life of German Reallife - Managers Interaction (InteractionManager.cs)
* @author MichaPlays
* @copyright (c) 2008 - 2018 Life of German
*/
using GTANetworkAPI;
using Newtonsoft.Json;
using ReallifeGamemode.Database.Models;
using ReallifeGamemode.Server.Extensions;
@@ -83,7 +88,7 @@ namespace ReallifeGamemode.Server.Bank
}
else
{
player.SendNotification($"~w~Du hast $~g~{amount} ~w~eingezahlt.");
player.SendNotification($"~w~Du hast $~g~{amount} ~w~eingezahlt.");
player.GetUser(dbContext).Handmoney -= amount;
player.GetUser(dbContext).BankAccount.Balance += amount;
dbContext.SaveChanges();
@@ -139,7 +144,7 @@ namespace ReallifeGamemode.Server.Bank
}
else
{
player.SendNotification($"~w~Du hast {target.Name} $~g~{amount} ~w~ Überwiesen.");
player.SendNotification($"~w~Du hast {target.Name} $~g~{amount} ~w~Überwiesen.");
player.GetUser(dbContext).BankAccount.Balance -= (int)(amount*1.05);
target.GetUser(dbContext).otheramount = amount;
dbContext.SaveChanges();
@@ -162,7 +167,7 @@ namespace ReallifeGamemode.Server.Bank
}
else
{
player.SendNotification($"~w~Du hast $~g~{amount} ~w~ in die Fraktionskasse eingezahlt.");
player.SendNotification($"~w~Du hast $~g~{amount}~w~ in die Fraktionskasse eingezahlt.");
player.GetUser(dbContext).Handmoney -= amount;
player.GetUser(dbContext).Faction.BankAccount.Balance += amount;
dbContext.SaveChanges();
@@ -191,7 +196,7 @@ namespace ReallifeGamemode.Server.Bank
}
else
{
player.SendNotification($"~w~Du hast {target.Name} $~g~{amount} ~w~ Überwiesen.");
player.SendNotification($"~w~Du hast {target.Name} $~g~{amount} ~w~Überwiesen.");
player.GetUser(dbContext).Faction.BankAccount.Balance -= (int)(amount * 1.05);
target.GetUser(dbContext).otheramount = amount;
dbContext.SaveChanges();