View Single Post
Author Message
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
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 - 11062 views - 7.3 KB)
__________________

Last edited by DarthNinja; 03-17-2011 at 07:45.
DarthNinja is offline