taxi nicht geld minus
This commit is contained in:
@@ -90,7 +90,7 @@ namespace ReallifeGamemode.Server.Job
|
||||
User target = dbContext.Users.Where(u => u.Id == targetId).FirstOrDefault();
|
||||
player.SendNotification("~r~[Info] ~w~ Dein Kunde hat kein Geld mehr auf der Hand.");
|
||||
|
||||
if(target.Handmoney <= 0)
|
||||
if((target.Handmoney - amount) <= 0)
|
||||
{
|
||||
Player targetmoney = PlayerService.GetPlayerByNameOrId(Convert.ToString(targetId));
|
||||
targetmoney.SendNotification("~r~[Fehler] ~w~ Du hast kein Geld mehr auf der Hand.");
|
||||
|
||||
Reference in New Issue
Block a user