AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Give Cash/Money (https://forums.alliedmods.net/showthread.php?t=152958)

DarthNinja 03-16-2011 21:08

[CS:S] Give Cash/Money
 
1 Attachment(s)
[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. :bacon:


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
-

databomb 03-18-2011 19:46

Re: [CS:S] Give Cash/Money
 
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.

DarthNinja 03-19-2011 01:47

Re: [CS:S] Give Cash/Money
 
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 :3

h_4_x_x 10-23-2012 18:10

Re: [CS:S] Give Cash/Money
 
works fine on cs:go

wepnet 11-07-2012 10:58

Re: [CS:S] Give Cash/Money
 
Wondering if you could add a feature "Add money each round" Instead of setting money each round

Mad Professor 12-27-2012 15:30

Re: [CS:S] Give Cash/Money
 
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.

Noro 03-06-2013 16:29

Re: [CS:S] Give Cash/Money
 
Is there any way of setting cash of all players at once?

stoneyschillhouse 03-06-2013 16:56

Re: [CS:S] Give Cash/Money
 
Quote:

Originally Posted by Noro (Post 1907938)
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"

Mad Professor 06-08-2013 06:36

Re: [CS:S] Give Cash/Money
 
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.

DarthNinja 06-08-2013 10:02

Re: [CS:S] Give Cash/Money
 
http://wiki.alliedmods.net/Overridin...28SourceMod%29


All times are GMT -4. The time now is 20:27.

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