Raised This Month: $51 Target: $400
 12% 

[CS:S] Drop Money On Death


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Plugin ID:
2684
Plugin Version:
0.3.7
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    When players die, they drop a portion of their money on the ground - including money model
    Old 11-24-2011 , 14:05   [CS:S] Drop Money On Death
    Reply With Quote #1

    This is a remake of this plugin. Since the author (SAMURAI16) is banned and won't be updating that plugin, I fixed it.

    DESCRIPTION:
    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 to "1"

    CVARS


    REQUIREMENTS:
    SDKHooks

    OPTIONAL:
    Updater - if you want the plugin to auto-update when bug fixes or changes are made

    CREDITS:
    Bacardi for his Healthkit from dead plugin - it helped me a bit

    NOTES:
    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)

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

    CHANGE LOG


    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.
    Attached Thumbnails
    Click image for larger version

Name:	dropmoneyondeathna7.jpg
Views:	2525
Size:	89.9 KB
ID:	95788  
    Attached Files
    File Type: txt DropMoneyOnDeath.phrases.txt (1.0 KB, 1345 views)
    File Type: sp Get Plugin or Get Source (DropMoneyOnDeath.sp - 1320 views - 21.4 KB)
    File Type: smx DropMoneyOnDeath.smx (11.0 KB, 1439 views)
    __________________
    View my Plugins | Donate

    Last edited by TnTSCS; 04-14-2012 at 13:21. Reason: Update from 0.3.6 to 0.3.7
    TnTSCS is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 08:15.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode