Raised This Month: $202 Target: $400
 50% 

[CS:S] Give Cash/Money


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Plugin ID:
2278
Plugin Version:
1.0.0
Plugin Category:
Admin Commands
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    33 
    Plugin Description:
    Various tools for changing cash values in CS:S
    Old 03-16-2011 , 21:08   [CS:S] Give Cash/Money
    Reply With Quote #1

    [CS:S] Give Cash
    Version 1.0.0



    Description:
    Allows an admin with the Slay flag to change money values.

    This started out as a simple update of ferret's SmCash plugin to add proper support for @me, @team, etc.
    Then I kept adding features, and, well, see below.


    Commands:
    • sm_cash <target> <value>
      Set's <target>'s cash to <value>
    • sm_setcash <target> <value>
      Same as above
    • sm_addcash <target> <value>
      Adds <value> to <target>'s cash
    • sm_autocash <target> <value>
      Sets <target>'s cash to <value> every time they spawn until canceled or they reconnect
      Use sm_autocash <target> -1 to cancel


    Cvars:
    • sm_givecash_version - Plugin Version
    • sm_givecash_max "1" - <1/0>
      If set to 1, this cvar will prevent you giving more then 60,000 cash.
      This is to prevent cash values rolling over into invalid values. If you don't want this safety feature on, set it to 0.
    • sm_givecash_showtext "1" - <1/0>
      If set to 1, the plugin will explicitly tell the client when their amount of cash is changed by the plugin.
      If set to 0, the plugin will still use ShowActivity2, but will not explicitly PrintToChat to each client.
    Install Instructions:
    1. Drag and drop.

    Notes:
    ~ ditto

    Version History:
    • V1.0.0
      • Initial Release
    -
    Attached Files
    File Type: sp Get Plugin or Get Source (Cash.sp - 7459 views - 7.3 KB)
    __________________

    Last edited by DarthNinja; 03-17-2011 at 07:45.
    DarthNinja is offline
    databomb
    Veteran Member
    Join Date: Jun 2009
    Location: Los Angeles, CA
    Old 03-18-2011 , 19:46   Re: [CS:S] Give Cash/Money
    Reply With Quote #2

    Nice, I'm glad you've updated the original. Although I'm not sure I'd trust my admins with that autocash feature.. I have a separate feature request, since you're checking the bounds for the money in some situations, it would be useful to check every round if the money is over the safe HUD limit. I figure 60K is relatively safe as the most you could get for completing all the objectives is ~3.8K + 300 per kill.
    __________________
    Public Plugins | Please: No new private requests.
    databomb is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 03-19-2011 , 01:47   Re: [CS:S] Give Cash/Money
    Reply With Quote #3

    The game resets player's cash down to 16K at the start of every round doesn't it? In which case I'm not sure what your request is.

    Poke me on IRC and let me know, and I'll see what I can do
    __________________
    DarthNinja is offline
    h_4_x_x
    Junior Member
    Join Date: Jun 2011
    Location: Austria
    Old 10-23-2012 , 18:10   Re: [CS:S] Give Cash/Money
    Reply With Quote #4

    works fine on cs:go
    h_4_x_x is offline
    wepnet
    Junior Member
    Join Date: Sep 2012
    Old 11-07-2012 , 10:58   Re: [CS:S] Give Cash/Money
    Reply With Quote #5

    Wondering if you could add a feature "Add money each round" Instead of setting money each round
    wepnet is offline
    Mad Professor
    Junior Member
    Join Date: May 2010
    Old 12-27-2012 , 15:30   Re: [CS:S] Give Cash/Money
    Reply With Quote #6

    Sorry newbe here.

    Silly question, but where do I put the "Cash.smx" file, and how to I get it working.

    ### EDIT ###
    Found where I needed to put the file now.
    Quote:
    Place the "cash.smx" file inside of the "addons/sourcemod/plugins/" folder.

    Last edited by Mad Professor; 12-27-2012 at 15:42.
    Mad Professor is offline
    Noro
    New Member
    Join Date: Mar 2013
    Old 03-06-2013 , 16:29   Re: [CS:S] Give Cash/Money
    Reply With Quote #7

    Is there any way of setting cash of all players at once?
    Noro is offline
    stoneyschillhouse
    Senior Member
    Join Date: Nov 2012
    Old 03-06-2013 , 16:56   Re: [CS:S] Give Cash/Money
    Reply With Quote #8

    Quote:
    Originally Posted by Noro View Post
    Is there any way of setting cash of all players at once?
    Yes, look at the first post


    sm_setcash <target> <value>

    <target> = howmuch money
    <value> = who is taken cash (you can use @t @ct @all...


    for example bind "KEY" "sm_setcash @all 16000"
    __________________
    SRY FOR MY BAD ENGLISH
    I'm german
    stoneyschillhouse is offline
    Mad Professor
    Junior Member
    Join Date: May 2010
    Old 06-08-2013 , 06:36   Re: [CS:S] Give Cash/Money
    Reply With Quote #9

    I have been using this Plugin for a few months now, and I am very happy with it.
    But I would like to know what is involved with changing the default Flag, from "Slay flag" to say "Custom1 flag"?

    Thanks for your time.

    Best Regards.
    Mad Professor is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 06-08-2013 , 10:02   Re: [CS:S] Give Cash/Money
    Reply With Quote #10

    http://wiki.alliedmods.net/Overridin...28SourceMod%29
    __________________
    DarthNinja is offline
    Reply


    Thread Tools
    Display Modes

    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 12:56.


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