Skramonk Posted February 27, 2022 Share Posted February 27, 2022 So in a previous post I requested a pvp skript that gives money to a player who kills another player, and that money is removed from the killed player. Here is my skript: on death of player: set {_max} to victim's balance set {_amount} to {_max} / 2 send "&a&l+ &aHalf players money!" to attacker send "&c&l- &cHalf your money!" to victim add {_amount} to attacker's balance remove {_amount} from victim's balance The issue I have is i want to send the amount removed/added to both the attacker and victim but simply adding {_amount} isnt working. Is there a simple fix for this? Thanks!! Link to comment Share on other sites More sharing options...
S_Mango Posted March 1, 2022 Share Posted March 1, 2022 You could use this, it should work but it has not been tested on death of player: set {_max} to {balance.%victim%} set {_amount} to {_max} / 2 send "&a&l+ &aHalf players money!" to attacker send "&c&l- &cHalf your money!" to victim add {_amount} to {balance.%attacker%} remove {_amount} from {balance.%victim%} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now