Hi Everyone!
I'm a very new Skripter who still has a lot to read and a lot to learn!
My current dilemma is creating a PvP system where a Player can kill another player and take some of their money for killing them. The amount taken is shown to both the killer and victim. The amount taken is constant, until a victim has less than the amount, in which case their account is drained to zero - the killer gets the remaining money, but if they kill a player with $0 they get nothing! In other words:
Player kills victim with $600, Player gets $500, victim loses $500.
Player kills same victim (now with $100), Player gets $100, Victim loses $100
Player kills same victim again (now with $0), Player gets $0, Victim has nothing to lose so stays at $0.
I would like to maybe implement that killing a player takes a Percentage of their balance, that way it ecourages killing rich players and ignoring poor ones.
Killing player with $1000 gives $750, Killing player with $10 gives $7.50 and so on...
I was wondering if a skript similar to this exists or if anyone is willing to make one or send me the groundwork for such a skript.
Thanks everyone!