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

[MvM] Add/Set Money (Admin Menu integration!)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Chefe
Senior Member
Join Date: Dec 2009
Location: Germany
Plugin ID:
3281
Plugin Version:
1.2
Plugin Category:
Admin Commands
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    12 
    Plugin Description:
    This plugin allows you to set/add money to a specified player (adding is also possible with the admin menu)
    Old 10-09-2012 , 03:45   [MvM] Add/Set Money (Admin Menu integration!)
    Reply With Quote #1

    [MvM] Add/Set Money (Admin Menu integration!)


    This plugin gives you the ability to add/set money in the MvM gamemode of TF2. Adding money is also possible with the admin menu. Alternative, there are the admin commands sm_setmoney <name> <amount> and sm_addmoney <name> <amount> to do it. The cheat flag is required for admins to do that. IŽii add a cvar later where you can change the flag that is required.



    Changelog


    Code:
    1.0
    
    - initial release
    
    1.1
    
    -fixed command not working correctly
    
    1.2
    
    - fixed some players didn't receive cash correctly
    + added sm_setaddmoney_auto (If non zero adding this amount of cash to each player who comes in, default: 0)
    + added autogenerated config (cfg/sourcemod)
    - some code adjustments
    - moved team items to menu page one
    - removed bots from the target menu
    -- Download History --

    1.0 :::: about 850
    1.1 :::: about 140
    Attached Files
    File Type: sp Get Plugin or Get Source (mvmsetaddmoney.sp - 6212 views - 8.6 KB)
    __________________
    My plugin repo, you're welcome to clone/pr or report issues there: SomeGit

    OpenFastDL: openfastdl.net
    Open public shared moderated FastDL for free use

    Last edited by Chefe; 06-26-2013 at 23:38.
    Chefe is offline
    Chefe
    Senior Member
    Join Date: Dec 2009
    Location: Germany
    Old 10-09-2012 , 04:30   Re: [MvM] Add/Set Money (Admin Menu integration!)
    Reply With Quote #2

    ~ reserved ~
    __________________
    My plugin repo, you're welcome to clone/pr or report issues there: SomeGit

    OpenFastDL: openfastdl.net
    Open public shared moderated FastDL for free use

    Last edited by Chefe; 06-26-2013 at 04:34.
    Chefe is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 10-09-2012 , 10:27   Re: [MvM] Add/Set Money (Admin Menu integration!)
    Reply With Quote #3

    What difference between original plugin + http://wiki.alliedmods.net/Custom_Admin_Menu_(SourceMod) ?
    I think you need to remove 'Red/blu teams' from menu and add 'For all' instead
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ is offline
    Chefe
    Senior Member
    Join Date: Dec 2009
    Location: Germany
    Old 10-09-2012 , 10:58   Re: [MvM] Add/Set Money (Admin Menu integration!)
    Reply With Quote #4

    Quote:
    Originally Posted by Root_ View Post
    What difference between original plugin + http://wiki.alliedmods.net/Custom_Admin_Menu_(SourceMod) ?
    I think you need to remove 'Red/blu teams' from menu and add 'For all' instead
    Good question. 1. "integrated" 2. cvar for flagchange (witch is planed)
    __________________
    My plugin repo, you're welcome to clone/pr or report issues there: SomeGit

    OpenFastDL: openfastdl.net
    Open public shared moderated FastDL for free use

    Last edited by Chefe; 06-26-2013 at 04:34.
    Chefe is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 10-09-2012 , 11:11   Re: [MvM] Add/Set Money (Admin Menu integration!)
    Reply With Quote #5

    Quote:
    Originally Posted by psychonic View Post
    Plugin authors:
    Be different! Do it better! Add something that the similar plugin does not have.
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ is offline
    Chefe
    Senior Member
    Join Date: Dec 2009
    Location: Germany
    Old 10-09-2012 , 11:29   Re: [MvM] Add/Set Money (Admin Menu integration!)
    Reply With Quote #6

    Quote:
    Originally Posted by Chefe View Post
    1. "integrated" 2. cvar for flagchange (witch is coming soon)
    Do you guess I donŽt know the rules?
    __________________
    My plugin repo, you're welcome to clone/pr or report issues there: SomeGit

    OpenFastDL: openfastdl.net
    Open public shared moderated FastDL for free use
    Chefe is offline
    Parabyte
    Member
    Join Date: Jan 2012
    Old 12-13-2012 , 01:47   Re: [MvM] Add/Set Money (Admin Menu integration!)
    Reply With Quote #7

    Admin menu works just fine. I try to use the command, and:


    Quote:
    L 12/13/2012 - 01:451: [SM] Native "GetEntProp" reported: Property "m_nCurrency" not found (entity 0/worldspawn)
    L 12/13/2012 - 01:451: [SM] Displaying call stack trace for plugin "mvmsetaddmoney.smx":
    L 12/13/2012 - 01:451: [SM] [0] Line 237, /home/groups/alliedmodders/forums/files/6/4/8/1/2/110647.attach::getClientCash()
    L 12/13/2012 - 01:451: [SM] [1] Line 229, /home/groups/alliedmodders/forums/files/6/4/8/1/2/110647.attach::Command_AddMoney()
    Parabyte is offline
    dbmiller5
    Senior Member
    Join Date: Jun 2011
    Old 06-25-2013 , 19:12   Re: [MvM] Add/Set Money (Admin Menu integration!)
    Reply With Quote #8

    We need a cvar to set money when the server starts, loads a new map, or a player joins. Maybe it could be something like sm_setcash_server <red/blue/all> <0-32767>. Hopefully you can integrate this soon. Right now I am having my server mods give out a little extra cash when the map loads.
    dbmiller5 is offline
    Chefe
    Senior Member
    Join Date: Dec 2009
    Location: Germany
    Old 06-26-2013 , 02:45   Re: [MvM] Add/Set Money (Admin Menu integration!)
    Reply With Quote #9

    Quote:
    Originally Posted by dbmiller5 View Post
    We need a cvar to set money when the server starts, loads a new map, or a player joins. Maybe it could be something like sm_setcash_server <red/blue/all> <0-32767>. Hopefully you can integrate this soon. Right now I am having my server mods give out a little extra cash when the map loads.
    New version is on the way. Should be out today I guess.

    Edit:

    Update to 1.2

    - fixed some players didn't receive cash correctly
    + added sm_setaddmoney_auto (If non zero adding this amount of cash to each player who comes in, default: 0)
    + added autogenerated config (cfg/sourcemod)
    - some code adjustments
    - moved team items to menu page one
    - removed bots from the target menu

    If you notice any problems with this new version pls report them here.
    __________________
    My plugin repo, you're welcome to clone/pr or report issues there: SomeGit

    OpenFastDL: openfastdl.net
    Open public shared moderated FastDL for free use

    Last edited by Chefe; 06-26-2013 at 04:31.
    Chefe is offline
    island55
    Senior Member
    Join Date: Aug 2010
    Location: charleston
    Old 07-04-2013 , 17:59   Re: [MvM] Add/Set Money (Admin Menu integration!)
    Reply With Quote #10

    how come the following command doesn't work?

    sm_setmoney @all 4000
    island55 is offline
    Reply



    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 03:57.


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