Jump to content

How do you make it where if someone kills someone they get money?


Recommended Posts

6 hours ago, TheSckwadbros999 said:

I was wondering how you can make it where if u kill someone you get money would it be something like this:

 

on death:
    if attacker is a player:
        add 50 to %player's balance%

idk

 

Hey, It’s great that you got the logic, but here is how you do it:

 

on death:

    if attacker is a player:

        add 50 to attacker's balance

 

Just make sure you have Vault and a valid Economy plugin (e.g. EssentialsX) installed.

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

Link to comment
Share on other sites

On 6/30/2021 at 2:32 PM, TheSckwadbros999 said:

I was wondering how you can make it where if u kill someone you get money would it be something like this:

 

on death:
    if attacker is a player:
        add 50 to %player's balance%

idk

 

For future reference, percent signs for variables or, in this case player's balance, are used in text.


eg. send "Money: %player's balance%" to player
eg. add 50 to player's balance

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

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...