This is a remake of this
plugin. Since the author (SAMURAI16
) is banned and won't be updating that plugin, I fixed it.
When a player dies, they will drop a percentage of their cash on the ground and a money model will appear near them (see screenshot).
If another player walks over that money, the amount the player dropped will be added to that player's cash and subtracted from the cash of the player who dropped the cash.
There is a max cash cvar you can set (defaulted to 16000) and if a player can only pick up part of the dropped money, then the part they pick up is added to their money (and that part is subtracted from the player's money who dropped it) and the remainder is left on the ground for someone else to pickup.
If no one picks up the money (all or part), the player who dropped it will not lose it, unless you set the plugin to have the player lost the money when they drop it.
You can set players to be immune to dropping money. Grant them Admin flag Custom4, or override the command "no_dropmoneyondeath
" to whatever flag you want.
You also have to set the CVar sm_DropMoneyOnDeath_dropimmunity
- if you want the plugin to auto-update when bug fixes or changes are made
Bacardi for his Healthkit from dead
plugin - it helped me a bit
I've tested it (with bots) and all seems to be working as expected. Let me know if you find any anomalies.
Screenshot attached - courtesy of the original posters thread (why reinvent the wheel)
Place the .smx file in your plugins folder
place the .txt file in your translations folder
If you are planning on compiling yourself, you need the colors include, updater include, and sdkhooks include.
If upgrading, make sure you backup your old config file, delete it (or change the name), then let the plugin create a new one for you, since 0.3.7 includes a new and changed CVar
Version 0.3.7 has an updated translation file and new CVars, so backup and delete your old config file and let the plugin create you a new one that you can customize.
For the new CVar sm_DropMoneyOnDeath_advertise
, it allows you to add the options you want and set it to the sum of the options you want. IE. if you want option 1 and 4, you would use "5" as the value.