_BlockDude Posted June 28 Share Posted June 28 on death of a player: attacker is player victim is player add 0.25 to attacker's balance send "&bYou killed %victim% and now have &7%attacker's balance%" to attacker I have this skript to give player's money when they kill a player, this seemed to work fine when a player was directly killed. However, when a player knocked somebody into the void it doesn't detect them or when they die to fall damage. Link to comment Share on other sites More sharing options...
_Tarna_ Posted June 28 Share Posted June 28 On damage, set a metadata value on the victim called like "lastAttacker" to the attacker. And then on death, you can get that lastAttacker value and use that as the attacker. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- 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