Fix skill actions on player death and cap RichBoy money

This commit is contained in:
Juzlus 2025-09-12 04:09:49 +02:00
parent 6805eaa746
commit 5ee1764318
3 changed files with 5 additions and 2 deletions

View file

@ -40,7 +40,7 @@ namespace jRandomSkills
var moneyServices = player.InGameMoneyServices;
if (moneyServices == null) return;
moneyServices.Account = Math.Max(moneyServices.Account + money, 0);
moneyServices.Account = Math.Min(Math.Max(moneyServices.Account + money, 0), 16000);
Utilities.SetStateChanged(player, "CCSPlayerController", "m_pInGameMoneyServices");
}