Monthly Target: $400 Donations: $140
 35% 

Notices

[TF2] Set Cash(Mann vs Machine mode)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Tylerst
Veteran Member
Join Date: Oct 2010
Plugin ID:
3164
Plugin Version:
1.1.0
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    111 
    Plugin Description:
    Set target(s) cash for Mann vs Machine mode
    Old 08-16-2012 , 01:42   [TF2] Set Cash(Mann vs Machine mode)
    Reply With Quote #1

    Description: Set target(s) cash for Mann vs Machine mode


    Cvars:
    sm_setcash_version "1.1.0"


    Commands:
    sm_setcash "target" "amount"
    sm_addcash "target" "amount"
    sm_removecash "target" "amount"
    Note: Should one of the commands result in negative cash, cash will be set to 0.

    Example Usage:
    sm_setcash @me 1000
    sm_setcash @all 0
    sm_addcash @red 10000
    sm_removecash ThatGuy 1337

    Changelog:
    Code:
    Version 1.0.0 - August 15, 2012
    *Initial Release
    
    Version 1.0.1 - August 16, 2012
    *Added sm_addcash and sm_removecash
    
    Version 1.0.2 - August 17, 2012
    *Plugin no longer targets bots
    
    Version 1.0.3 - August 17, 2012
    *Fixed cash check error in addcash and removecash
    
    Version 1.1.0 - June 28, 2014
    *Huge code overhaul
    *Fixed negative cash on loss(should now reset to 0 on spawn)
    *Removed 32767 cash limit(m_nCurrency is now 32-bit)
    Attached Files
    File Type: sp Get Plugin or Get Source (SetCash.sp - 2327 views - 4.2 KB)

    Last edited by Tylerst; 06-28-2014 at 05:07. Reason: Big Update
    Tylerst is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: United States
    Old 08-16-2012 , 01:44   Re: [TF2] Set Cash(Mann vs Machine mode)
    Reply With Quote #2

    lol win
    __________________
    ReFlexPoison is offline
    wasder
    Senior Member
    Join Date: Oct 2009
    Location: That country
    Old 08-16-2012 , 05:45   Re: [TF2] Set Cash(Mann vs Machine mode)
    Reply With Quote #3

    Love you. C:
    wasder is offline
    Send a message via Skype™ to wasder
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 08-16-2012 , 05:46   Re: [TF2] Set Cash(Mann vs Machine mode)
    Reply With Quote #4

    Looooads a money...

    Feature to add money instead of set would be nice.
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Location: Source SDK
    Old 08-16-2012 , 05:51   Re: [TF2] Set Cash(Mann vs Machine mode)
    Reply With Quote #5

    Quote:
    Originally Posted by MasterOfTheXP View Post
    Looooads a money...

    Feature to add money instead of set would be nice.
    Loadsa money! http://www.youtube.com/watch?v=D-ubJqgtKSw

    I think there is an achievement for acquiring one million cash but your cash limit is capped at 32767. Is that the maximum the game will allow to be held at once?

    Last edited by Sreaper; 08-16-2012 at 05:58.
    Sreaper is offline
    Tylerst
    Veteran Member
    Join Date: Oct 2010
    Old 08-16-2012 , 11:36   Re: [TF2] Set Cash(Mann vs Machine mode)
    Reply With Quote #6

    Update to 1.0.1
    -Added sm_addcash and sm_removecash

    Quote:
    Originally Posted by MasterOfTheXP View Post
    Looooads a money...

    Feature to add money instead of set would be nice.
    Done

    Quote:
    Originally Posted by Sreaper View Post
    Loadsa money! http://www.youtube.com/watch?v=D-ubJqgtKSw

    I think there is an achievement for acquiring one million cash but your cash limit is capped at 32767. Is that the maximum the game will allow to be held at once?
    Yep, nothing I can do about it

    Quote:
    Originally Posted by Skyrider View Post
    Uploaded SMX within my attachment. Used the exact source code to compile it in the first post.
    Thanks, I finally got it to attach. This won't be needed anymore(and I updated to 1.0.1)

    Last edited by Tylerst; 08-16-2012 at 11:37.
    Tylerst is offline
    Skyrider
    AMX Mod X Beta Tester
    Join Date: May 2005
    Location: Netherlands
    Old 08-16-2012 , 11:39   Re: [TF2] Set Cash(Mann vs Machine mode)
    Reply With Quote #7

    Yea, I removed my reply .
    __________________
    Skyrider is offline
    Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
    danne2
    SourceMod Donor
    Join Date: Jul 2011
    Location: Unoriginal computer joke
    Old 08-16-2012 , 14:37   Re: [TF2] Set Cash(Mann vs Machine mode)
    Reply With Quote #8

    And this is why we can't host Mann Up. servers
    __________________
    danne2 is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 08-16-2012 , 14:38   Re: [TF2] Set Cash(Mann vs Machine mode)
    Reply With Quote #9

    Quote:
    Originally Posted by danne2 View Post
    And this is why we can't host Mann Up. servers
    No this has nothing to do with that, more so on the side of greed by Valve.
    Horsedick is offline
    Jim E. Rustler
    BANNED
    Join Date: Jul 2012
    Old 08-16-2012 , 14:55   Re: [TF2] Set Cash(Mann vs Machine mode)
    Reply With Quote #10

    Gaben needs more MLP:FIM toys to buy.
    Jim E. Rustler 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 14:27.


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