• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

KillMoney with MadCmds.

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.

NoYoursNo

Tree Puncher
#1
This is a pretty small code.

1: let %dama% = %args%[2]
2: let %killer% = %args%[3]
3: %g% = playergroup(%killer%)
4: %rnd% = random(150,400)
5: if %killer% = %dama% then exit
6: ascon /give money %killer% %rnd%
7: message %killer% You earned $%rnd% from killing %dama!%

A few details about the Lines:
Line 4 - that line determine the amount of cash the Killer recieves. The 150 and 400 can be edited.
Line 5 - That line prevents the Player from killing themselves and recieving money
Line 7 - the message they receive when they get the Kill
 

NoYoursNo

Tree Puncher
#2
You also need to do:
/cmd trigger killmoney death in order for it to Run when someone dies.

(The killmoney part of the command is the name of the CMD. Whatever u named it, you put it in the place where I put killmoney)