Jump to content

Looking for a Skript where the player can lose money upon death


SPAceBP

Recommended Posts

Hello, I'm looking for a Skript that when a player dies, they lose 'x' amount of money.  And that it is announced in the chat (only visible to the player though) that they lost 'x' amount of money.  

 

I also use the KillerMoney plugin, but I'm not sure how to exactly make the player lose money upon death. 

So either helping me with the KillerMoney plugin or Skript works, thanks for reading!

Link to comment
Share on other sites

options:
	moneylostperkill: 100 #change 100 to anything for the different amount of money per kill

on death:
	if victim is a player:
		if attacker is a player:
			send "&cYou have lost &7${@moneylostperkill} &cfrom dying by %attacker%"
			remove {@moneylostperkill} from victim's balance
			

Dependencies:

Skript

SkQuery

Edited by SoloStrafe

Hello! I'm SoloStrafe!
 

Skills:

Skript (4+ years experience)

Most of the plugins on MH

Servers:

- Westmine (Developer)

- Mineport (Admin)

Minehut:

Untitled.png.395f912cec0139eaf122fc8874f57045.png

I got VIP rank on 8/1/2019 -> Current

Link to comment
Share on other sites

8 hours ago, SoloStrafe said:

options:
	moneyperkill: 100 #change 100 to anything for the different amount of money per kill

on death:
	add {@moneyperkill} to attacker's balance
	send "&7You have recieved $100 for killing %victim%" to attacker

Dependencies:

Skript

SkQuery

Some stuff to note:

1. You didnt remove money from the victim or even send him a message

2. In my opinion a player should lose a percentage of his total amount of money instead of a fixed amount 

3. You didn't check if the attacker and victim are players

Edited by OMan100
Link to comment
Share on other sites

Thanks! I just edited and fixed it now.

Edited by SoloStrafe

Hello! I'm SoloStrafe!
 

Skills:

Skript (4+ years experience)

Most of the plugins on MH

Servers:

- Westmine (Developer)

- Mineport (Admin)

Minehut:

Untitled.png.395f912cec0139eaf122fc8874f57045.png

I got VIP rank on 8/1/2019 -> Current

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...