ULX

Author Topic: Money Commands -- DarkRP  (Read 67368 times)

0 Members and 1 Guest are viewing this topic.

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Money Commands -- DarkRP
« on: December 19, 2014, 01:00:54 PM »
Here's your basic money commands for DarkRP.
I personally have experienced the issue where you need to modify someone's money because they either got RDM'd or an event happened where they glitched out or something happened that shouldn't. I couldn't find any commands at the time of writing the code so I wrote it up myself and releasing for any and all to use!

(If you try this on another gamemode you will have errors because of one or more of the following reasons: You're incompetent, You're a troll, You can't read, You can't even internet.)

Contains the following:

!givemoney - Gives money to a player (!givemoney <name> <amount>)

!takemoney - Takes money away from a player (!takemoney <name> <amount>)

!setmoney - Sets the money of a player (!setmoney <name> <amount>)

!getmoney - Gets the wallet amount of a player (!getmoney <name>)

Let me know if there are any issues.

Update: Added getmoney command. Submitted by  XxLMM13xXgaming and edited by myself.
« Last Edit: March 30, 2015, 12:40:34 PM by syst3M4TiK »
Once you get to know me, you'll find you'll have never met me at all.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Money Commands -- DarkRP
« Reply #1 on: December 19, 2014, 10:13:20 PM »
Pardon my ignorance if what I'm asking already exists in DarkRP, but, as someone running the commands you provide, can you tell how much they already have?
If not, the perhaps a command to tell you (I dunno, 'getmoney'?)
Again, my ignorance of DarkRP is strong (I have enough real world life..I don't want to role play one) :)

Also, I stronly encourage you to make your own addon folder/path.
I cringe for the support issues that pop up when people add files directly to our folder paths.
« Last Edit: December 19, 2014, 10:14:57 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Money Commands -- DarkRP
« Reply #2 on: December 19, 2014, 10:24:12 PM »
Noted, I've removed the money.lua, leaving the Money Commands path.

As well, in DarkRP the scoreboard will notify you of the amount of money players have. If it's requested, I'll code a getmoney command.
Once you get to know me, you'll find you'll have never met me at all.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Money Commands -- DarkRP
« Reply #3 on: December 19, 2014, 10:35:58 PM »
the scoreboard will notify you of the amount of money players have
Great, if you're not controlling your server from a console when you get some email/steam IM/forum post of some user crying that <x> happened and the person wants money.
I'm a console geek. Always will be. I'm sure if I were in that situation I could use luarun print <the var> but...meh, getmoney just seems sexier/quicker.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Money Commands -- DarkRP
« Reply #4 on: December 19, 2014, 10:56:08 PM »
Now that you've said it's sexier, I'll get right on it
Once you get to know me, you'll find you'll have never met me at all.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Money Commands -- DarkRP
« Reply #5 on: December 20, 2014, 08:30:31 AM »
Haha. Great. I'd no idea the phrase in advertising "sex sells" would apply to Lua suggestions, let alone is a forum we try to keep family friendly.

Great functionality for those DarkRP users out here. Good work.
I'm surprised the functions weren't included in DarkRP (or were they, but removed when disabling Fadmin or something)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Money Commands -- DarkRP
« Reply #6 on: December 20, 2014, 02:32:21 PM »
No, they never existed. The original way for us to give money to players as admins were either our own money or generating it in an ATM Account
Once you get to know me, you'll find you'll have never met me at all.

Offline kulcris

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Money Commands -- DarkRP
« Reply #7 on: December 23, 2014, 10:12:28 AM »
Was just looking for this a few days ago. i would also like a "getmoney" command


also capital letters in addon names makes them not work on linux servers correctly for some reason ("Money Commands" should probably be "money commands"

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Money Commands -- DarkRP
« Reply #8 on: December 23, 2014, 02:47:12 PM »
Noted, I'll fix that on the next update
Once you get to know me, you'll find you'll have never met me at all.

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Money Commands -- DarkRP
« Reply #9 on: March 30, 2015, 12:40:57 PM »
Updated with a !getmoney command
Once you get to know me, you'll find you'll have never met me at all.

Offline UnknownIcicle

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Money Commands -- DarkRP
« Reply #10 on: December 20, 2015, 04:31:05 PM »
Forgive me for necroposting, and for being a small idiot, but where is a download link? Or is there not one? I can't seem to find any other version of this, but I need it.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Money Commands -- DarkRP
« Reply #11 on: December 20, 2015, 07:33:04 PM »
Forgive me for necroposting, and for being a small idiot, but where is a download link?
As is for a majority of forums, including ours, you must be registered and logged in to see the zip file link.
Now that you have an account, it's right there at the bottom of the first post. You just have to be logged in.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline [NIKS] (OoC)Warrior Gaming

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Money Commands -- DarkRP
« Reply #12 on: June 16, 2020, 02:28:53 PM »
so how do i install it to ulx ?its not working i got it in addons but still not working ?