AlliedModders

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

Dr!fter 01-13-2012 14:33

[CS:S] Max Money
 
2 Attachment(s)
This plugin adds a new cvar that allows changing the max money a player can have. (mp_maxmoney).

REQUIRES SOURCEMOD 1.4.2+

By default the plugin sets the cvar to 65000. To change it to 32000 for example in your server config simply put mp_maxmoney 32000. This also works for lowering the max money. So limiting it to 1 dollar can be done with mp_maxmoney 1

If you use the older version which used this extension http://forums.alliedmods.net/showthread.php?t=141579 you should remove the extension before installing this.

Cvars:
Code:

mp_maxmoney
Warning: the hud for displaying money has a limit of 65536 Setting the max to anything higher will have weird effects for the client the money will still save correctly though.

Install:
Place the smx into your addons/sourcemod/plugins folder
Place the maxmoney.games.txt into your addons/sourcemod/gamedata folder

Changelog:

-1.01
-Fixed major memory leak.
-1.02
-Removed ConVarBounds for mp_startmoney
-1.03
-Removed the need for MemPatch
-Requires SourceMod 1.4.2+

Dr!fter 01-15-2012 21:42

Re: [CS:S] Max Money
 
Updated. Fixed a major memory leak I missed.

alongub 01-16-2012 00:52

Re: [CS:S] Max Money
 
Works great. But is it safe to use? How likely it is to break in updates?

Bacardi 01-16-2012 01:31

Re: [CS:S] Max Money
 
Quote:

Originally Posted by alongub (Post 1632707)
Works great. But is it safe to use? How likely it is to break in updates?

It's hard to know about Valve updates in advance...
Have MetaMod:Source and SM broke few times after source game updates and developers have fix it.
So when thinking in end, in some day, one of many updates could broke this plugin by different signature or offset.


*suggestion
What if uncamp max value from cvar mp_startmoney, it have limited 16000
mp_startmoney

Dr!fter 01-16-2012 09:28

Re: [CS:S] Max Money
 
Quote:

Originally Posted by Bacardi (Post 1632718)
It's hard to know about Valve updates in advance...
Have MetaMod:Source and SM broke few times after source game updates and developers have fix it.
So when thinking in end, in some day, one of many updates could broke this plugin by different signature or offset.


*suggestion
What if uncamp max value from cvar mp_startmoney, it have limited 16000
mp_startmoney

Yea i need to add that to this plugin. The one that came with the old extension had it. As for chance of breaking isnt that high. Probably as normal as any other plugin that uses gamedata. If the offsets for where to patch were manually set in the gamedata it would be more likely. But since they are calculated on the fly there is no worry about the offsets. Also sure its safe to use!

Edit:
Updated to add bacardi's suggestion.

R4to0.exe 04-11-2012 13:07

Re: [CS:S] Max Money
 
This plugin still supported? I'm getting a weird error.

Code:

L 04/11/2012 - 12:51:00: SourceMod error session started
L 04/11/2012 - 12:51:00: Info (map "de_prodigy") (file "errors_20120411.log")
L 04/11/2012 - 12:51:00: [SM] Native "GetBytePatternOffsets" reported: Failed to locate AddAccount in gamedata.
L 04/11/2012 - 12:51:00: [SM] Displaying call stack trace for plugin "css-maxmoney.smx":
L 04/11/2012 - 12:51:00: [SM]  [0]  Line 47, C:\extension\plugins\mempatch\moneypatch\css-maxmoney.sp::OnPluginStart()
L 04/11/2012 - 13:00:22: [SM] Native "GetBytePatternOffsets" reported: Failed to locate AddAccount in gamedata.
L 04/11/2012 - 13:00:22: [SM] Displaying call stack trace for plugin "css-maxmoney.smx":
L 04/11/2012 - 13:00:22: [SM]  [0]  Line 47, C:\extension\plugins\mempatch\moneypatch\css-maxmoney.sp::OnPluginStart()
L 04/11/2012 - 13:02:46: [SM] Native "GetBytePatternOffsets" reported: Failed to locate AddAccount in gamedata.
L 04/11/2012 - 13:02:46: [SM] Displaying call stack trace for plugin "css-maxmoney.smx":
L 04/11/2012 - 13:02:46: [SM]  [0]  Line 47, css-maxmoney.sp::OnPluginStart()
L 04/11/2012 - 13:14:00: [SM] Native "GetBytePatternOffsets" reported: Failed to locate AddAccount in gamedata.
L 04/11/2012 - 13:14:00: [SM] Displaying call stack trace for plugin "css-maxmoney.smx":
L 04/11/2012 - 13:14:00: [SM]  [0]  Line 47, css-maxmoney.sp::OnPluginStart()

Regards.

EDIT: Nevermind, got it working by restarting server...

Dr!fter 04-14-2012 17:02

Re: [CS:S] Max Money
 
Updated to remove the need for MemPatch. It now requires SourceMod 1.4.2+

Kammi_ 05-09-2012 12:28

Re: [CS:S] Max Money
 
it dosn't work everytime it falls back to 16k mp_maxmoney is set to 65k

Code:

18:19:41 meta list
18:19:41 Listing 7 plugins:
          [01] sbsrc (4.3.1) by IceMatrix, Live, Asherkin
          [02] SourceMod (1.4.2) by AlliedModders LLC
          [03] CS:S Tools (1.4.2) by AlliedModders LLC
          [04] SDK Tools (1.4.2) by AlliedModders LLC
          [05] SDK Hooks (2.1.0) by Tsunami, psychonic
          [06] SteamTools (0.8.2) by Asher Baker (asherkin)
          [07] Connect (1.0.0) by Asher "asherkin" Baker

Code:

18:20:29 [SM] Listing 81 plugins:
          01 "Show Damage" (1.0.7) by exvel
          02 "SMAC ConVar Checker" (0.7.8.2) by GoD-Tony, psychonic, Kigen
          03 "Client Preferences" (1.4.2) by AlliedModders LLC
          04 "Connect Announce" (1.3) by Arg!
          05 "Quake Sounds" (2.7) by dalto, Grrrrrrrrrrrrrrrrrrr, and psychonic
          06 "Be Medic" (1.0) by RedSword
          07 "Map Nominations" (1.3.3) by AlliedModders LLC
          08 "Admin Menu" (1.4.2) by AlliedModders LLC
          09 "Basic Comm Control" (1.4.2) by AlliedModders LLC
          10 "AutoRestart" (1.2) by MikeJS
          11 "Bomb Commands" (2.1.0) by RedSword / Bob Le Ponge
          12 "Admin Help" (1.4.2) by AlliedModders LLC
          13 "Stamm" (1.45) by Popoklopsi
          14 "NoBlock" (1.3.0) by Otstrel.ru Team
          15 "SMAC CS:S Anti-Smoke" (0.7.8.2) by GoD-Tony
          16 "Players Votes" (1.5.0) by The Resident, pZv!
          17 "Damage Money" (1.0) by Fredd
          18 "Afk Bomb" (1.5.0) by RedSword / Bob Le Ponge
          19 "Rules Plugin" (1.1) by haN
          20 "QuickDefuse" (0.3) by pRED*
          21 "SQL Admins (Threaded)" (1.3.3) by AlliedModders LLC
          22 "Team Bets" (2.6) by GrimReaper - Original by ferret
          23 "VIP-Weapon.smx"
          24 "Fun Votes" (1.4.2) by AlliedModders LLC
          25 "SourceBans" (1.4.9) by SourceBans Development Team
          26 "SQL Admin Manager" (1.3.3) by AlliedModders LLC
          27 "Resetscore" (1.1.otstrel.2) by tuty, Otstrel.ru team
          28 "SourceMod Anti-Cheat" (0.7.8.2) by GoD-Tony, psychonic
          29 "SM Super Menu" (0.5) by pRED*
          30 "C4 Countdown Timer" (1.0.0.0) by sslice
          31 "SMAC Aimbot Detector" (0.7.8.2) by GoD-Tony
          32 "SMAC Command Monitor" (0.7.8.2) by GoD-Tony, psychonic, Kigen
          33 "Updater" (1.1.4) by GoD-Tony
          34 "VAC Status Checker" (1.3.3) by Stevo.TVR
          35 "Weapon Restrict" (2.3.3) by Dr!fter
          36 "Basic Chat" (1.4.2) by AlliedModders LLC
          37 "SMAC Client Protection" (0.7.8.3) by GoD-Tony, psychonic, Kigen
          38 "SMAC Eye Angle Test" (0.7.8.2) by GoD-Tony, psychonic
          39 "High Ping Kicker - Lite Edition" (1.0.0.1) by Liam
          40 "Stop HintText Sound" (1.0.0) by Tauphi, exvel
          41 "Simple SourceMod Plugins Core Plugin" (1.0.$Revision: 90 $) by Simple SourceMod Plugins
          42 "Spec-Hop Money Block" (1.0.0) by FlyingMongoose
          43 "Admin File Reader" (1.4.2) by AlliedModders LLC
          44 "Basic Commands" (1.4.2) by AlliedModders LLC
          45 "Player Commands" (1.4.2) by AlliedModders LLC
          46 "Bounty" (1.0.9.0) by Shane A. ^BuGs^ Froebel, FlyingMongoose, and stoic
          47 "Kilometergeld" (0.1) by ata-clan.de
          48 "Basic Votes" (1.4.2) by AlliedModders LLC
          49 "SMAC Anti-Wallhack" (0.7.8.2) by GoD-Tony, psychonic, Kigen
          50 "SMAC AutoTrigger Detector" (0.7.8.2) by GoD-Tony
          51 "Fun Commands" (1.4.2) by AlliedModders LLC
          52 "Anti-Flood" (1.4.2) by AlliedModders LLC
          53 "Anti-Rejoin" (2.0.0) by exvel
          54 "HLstatsX CE Ingame Plugin" (1.6.10) by psychonic
          55 "Adverts" (1.0.1) by Wiebbe
          56 "Web Shortcuts" (1.0.1) by James "sslice" Gray
          57 "[CSS] Weapon Noblock" (1.0.1) by Kingo
          58 "CSS Throwing Knives" (1.2.2b) by meng
          59 "Basic Info Triggers" (1.4.2) by AlliedModders LLC
          60 "Advertisements" (0.5.5) by Tsunami
          61 "Too Late To Ban" (1.0.0a) by Shenton
          62 "MapChooser" (1.3.3) by AlliedModders LLC
          63 "SMAC Anti-Speedhack" (0.7.8.2) by GoD-Tony
          64 "CSS Friendly Fire Announcer" (1.0.1) by TnTSCS aka ClarkKent
          65 "Nextmap" (1.4.2) by AlliedModders LLC
          66 "TeamSwitch" (1.4) by MistaGee (Modify by Snake 60)
          67 "Simple TK Manager" (1.0d) by Lebson506th
          68 "SM Super Commands" (0.60) by pRED*
          69 "SMAC Spinhack Detector" (0.7.8.2) by GoD-Tony
          70 "Blackjack" (1.0) by Jannik "Peace-Maker" Hartung
          71 "SMAC CS:S Anti-Flash" (0.7.8.2) by GoD-Tony
          72 "Rock The Vote" (1.3.3) by AlliedModders LLC
          73 "SMAC Rcon Locker" (0.7.8.2) by GoD-Tony, Kigen
          74 "Sound Commands" (1.4.2) by AlliedModders LLC
          75 "Plant/Defuse Money" (1.0) by Fredd
          76 "Bomb Events" (1.1) by tuty
          77 "Say Sounds (including Hybrid Edition)" (3.2.4) by Hell Phoenix, -=|JFH|=-Naris, W]M[D FernFerret, LAMDACORE, Uberman, gH0sTy, Woody
          78 "Reserved Slots" (1.4.2) by AlliedModders LLC
          79 "Simple Spectate" (1.2.1) by Simple Plugins
          80 "[CS:S]MaxMoney" (1.0.3) by Dr!fter
          81 "Advanced c4 Countdown Timer" (1.4.1) by dalto

in the error log is nothing about that

// the console give that

Code:


] rcon mp_maxmoney 32000
autokick is disabled for 【ツ】Kammi_ 【ツ】
L 05/09/2012 - 18:43:27: server_cvar: "mp_maxmoney" "32000"
L 05/09/2012 - 18:43:27: server_cvar: "sv_tags" "D2,Dust2,Dust2,HLstats,HLstatsX:CE,NoQuakeSound,bank,bots,dark,dl,drg,dust,fast,fastdl,friendlyfire,fun,ga"
L 05/09/2012 - 18:43:27: server_cvar: "sv_tags" "D2,Dust2,Dust2,HLstats,HLstatsX:CE,NoQuakeSound,bank,bots,dark,dl,drg,dust,fast,fastdl,friendlyfire,fun,ga"
ConVarRef mp_maxmoney doesn't point to an existing ConVar
SetConVar: No such cvar ( mp_maxmoney set to 32000), skipping
a


Dr!fter 05-09-2012 19:05

Re: [CS:S] Max Money
 
Quote:

Originally Posted by Kammi_ (Post 1705662)
it dosn't work everytime it falls back to 16k mp_maxmoney is set to 65k

Code:

18:19:41 meta list
18:19:41 Listing 7 plugins:
          [01] sbsrc (4.3.1) by IceMatrix, Live, Asherkin
          [02] SourceMod (1.4.2) by AlliedModders LLC
          [03] CS:S Tools (1.4.2) by AlliedModders LLC
          [04] SDK Tools (1.4.2) by AlliedModders LLC
          [05] SDK Hooks (2.1.0) by Tsunami, psychonic
          [06] SteamTools (0.8.2) by Asher Baker (asherkin)
          [07] Connect (1.0.0) by Asher "asherkin" Baker

Code:

18:20:29 [SM] Listing 81 plugins:
          01 "Show Damage" (1.0.7) by exvel
          02 "SMAC ConVar Checker" (0.7.8.2) by GoD-Tony, psychonic, Kigen
          03 "Client Preferences" (1.4.2) by AlliedModders LLC
          04 "Connect Announce" (1.3) by Arg!
          05 "Quake Sounds" (2.7) by dalto, Grrrrrrrrrrrrrrrrrrr, and psychonic
          06 "Be Medic" (1.0) by RedSword
          07 "Map Nominations" (1.3.3) by AlliedModders LLC
          08 "Admin Menu" (1.4.2) by AlliedModders LLC
          09 "Basic Comm Control" (1.4.2) by AlliedModders LLC
          10 "AutoRestart" (1.2) by MikeJS
          11 "Bomb Commands" (2.1.0) by RedSword / Bob Le Ponge
          12 "Admin Help" (1.4.2) by AlliedModders LLC
          13 "Stamm" (1.45) by Popoklopsi
          14 "NoBlock" (1.3.0) by Otstrel.ru Team
          15 "SMAC CS:S Anti-Smoke" (0.7.8.2) by GoD-Tony
          16 "Players Votes" (1.5.0) by The Resident, pZv!
          17 "Damage Money" (1.0) by Fredd
          18 "Afk Bomb" (1.5.0) by RedSword / Bob Le Ponge
          19 "Rules Plugin" (1.1) by haN
          20 "QuickDefuse" (0.3) by pRED*
          21 "SQL Admins (Threaded)" (1.3.3) by AlliedModders LLC
          22 "Team Bets" (2.6) by GrimReaper - Original by ferret
          23 "VIP-Weapon.smx"
          24 "Fun Votes" (1.4.2) by AlliedModders LLC
          25 "SourceBans" (1.4.9) by SourceBans Development Team
          26 "SQL Admin Manager" (1.3.3) by AlliedModders LLC
          27 "Resetscore" (1.1.otstrel.2) by tuty, Otstrel.ru team
          28 "SourceMod Anti-Cheat" (0.7.8.2) by GoD-Tony, psychonic
          29 "SM Super Menu" (0.5) by pRED*
          30 "C4 Countdown Timer" (1.0.0.0) by sslice
          31 "SMAC Aimbot Detector" (0.7.8.2) by GoD-Tony
          32 "SMAC Command Monitor" (0.7.8.2) by GoD-Tony, psychonic, Kigen
          33 "Updater" (1.1.4) by GoD-Tony
          34 "VAC Status Checker" (1.3.3) by Stevo.TVR
          35 "Weapon Restrict" (2.3.3) by Dr!fter
          36 "Basic Chat" (1.4.2) by AlliedModders LLC
          37 "SMAC Client Protection" (0.7.8.3) by GoD-Tony, psychonic, Kigen
          38 "SMAC Eye Angle Test" (0.7.8.2) by GoD-Tony, psychonic
          39 "High Ping Kicker - Lite Edition" (1.0.0.1) by Liam
          40 "Stop HintText Sound" (1.0.0) by Tauphi, exvel
          41 "Simple SourceMod Plugins Core Plugin" (1.0.$Revision: 90 $) by Simple SourceMod Plugins
          42 "Spec-Hop Money Block" (1.0.0) by FlyingMongoose
          43 "Admin File Reader" (1.4.2) by AlliedModders LLC
          44 "Basic Commands" (1.4.2) by AlliedModders LLC
          45 "Player Commands" (1.4.2) by AlliedModders LLC
          46 "Bounty" (1.0.9.0) by Shane A. ^BuGs^ Froebel, FlyingMongoose, and stoic
          47 "Kilometergeld" (0.1) by ata-clan.de
          48 "Basic Votes" (1.4.2) by AlliedModders LLC
          49 "SMAC Anti-Wallhack" (0.7.8.2) by GoD-Tony, psychonic, Kigen
          50 "SMAC AutoTrigger Detector" (0.7.8.2) by GoD-Tony
          51 "Fun Commands" (1.4.2) by AlliedModders LLC
          52 "Anti-Flood" (1.4.2) by AlliedModders LLC
          53 "Anti-Rejoin" (2.0.0) by exvel
          54 "HLstatsX CE Ingame Plugin" (1.6.10) by psychonic
          55 "Adverts" (1.0.1) by Wiebbe
          56 "Web Shortcuts" (1.0.1) by James "sslice" Gray
          57 "[CSS] Weapon Noblock" (1.0.1) by Kingo
          58 "CSS Throwing Knives" (1.2.2b) by meng
          59 "Basic Info Triggers" (1.4.2) by AlliedModders LLC
          60 "Advertisements" (0.5.5) by Tsunami
          61 "Too Late To Ban" (1.0.0a) by Shenton
          62 "MapChooser" (1.3.3) by AlliedModders LLC
          63 "SMAC Anti-Speedhack" (0.7.8.2) by GoD-Tony
          64 "CSS Friendly Fire Announcer" (1.0.1) by TnTSCS aka ClarkKent
          65 "Nextmap" (1.4.2) by AlliedModders LLC
          66 "TeamSwitch" (1.4) by MistaGee (Modify by Snake 60)
          67 "Simple TK Manager" (1.0d) by Lebson506th
          68 "SM Super Commands" (0.60) by pRED*
          69 "SMAC Spinhack Detector" (0.7.8.2) by GoD-Tony
          70 "Blackjack" (1.0) by Jannik "Peace-Maker" Hartung
          71 "SMAC CS:S Anti-Flash" (0.7.8.2) by GoD-Tony
          72 "Rock The Vote" (1.3.3) by AlliedModders LLC
          73 "SMAC Rcon Locker" (0.7.8.2) by GoD-Tony, Kigen
          74 "Sound Commands" (1.4.2) by AlliedModders LLC
          75 "Plant/Defuse Money" (1.0) by Fredd
          76 "Bomb Events" (1.1) by tuty
          77 "Say Sounds (including Hybrid Edition)" (3.2.4) by Hell Phoenix, -=|JFH|=-Naris, W]M[D FernFerret, LAMDACORE, Uberman, gH0sTy, Woody
          78 "Reserved Slots" (1.4.2) by AlliedModders LLC
          79 "Simple Spectate" (1.2.1) by Simple Plugins
          80 "[CS:S]MaxMoney" (1.0.3) by Dr!fter
          81 "Advanced c4 Countdown Timer" (1.4.1) by dalto

in the error log is nothing about that

// the console give that

Code:


] rcon mp_maxmoney 32000
autokick is disabled for 【ツ】Kammi_ 【ツ】
L 05/09/2012 - 18:43:27: server_cvar: "mp_maxmoney" "32000"
L 05/09/2012 - 18:43:27: server_cvar: "sv_tags" "D2,Dust2,Dust2,HLstats,HLstatsX:CE,NoQuakeSound,bank,bots,dark,dl,drg,dust,fast,fastdl,friendlyfire,fun,ga"
L 05/09/2012 - 18:43:27: server_cvar: "sv_tags" "D2,Dust2,Dust2,HLstats,HLstatsX:CE,NoQuakeSound,bank,bots,dark,dl,drg,dust,fast,fastdl,friendlyfire,fun,ga"
ConVarRef mp_maxmoney doesn't point to an existing ConVar
SetConVar: No such cvar ( mp_maxmoney set to 32000), skipping
a


Can you post the out put of sm exts list. That is a very weird error.

Kammi_ 05-10-2012 08:45

Re: [CS:S] Max Money
 
here it is

Code:


14:44:53 [SM] Displaying 15 extensions:
        [01] Automatic Updater (1.4.2): Updates SourceMod gamedata files
        [02] Webternet (1.4.2): Extension for interacting with URLs
        [03] CS:S Tools (1.4.2): CS:S extended functionality
        [04] BinTools (1.4.2): Low-level C/C++ Calling API
        [05] SDK Tools (1.4.2): Source SDK Tools
        [06] Client Preferences (1.4.2): Saves client preference settings
        [07] SQLite (1.4.2): SQLite Driver
        [08] GeoIP (1.4.2): Geographical IP information
        [09] Top Menus (1.4.2): Creates sorted nested menus
        [10] Socket (3.0.1): Socket extension for SourceMod
        [11] SDK Hooks (2.1.0): Source SDK Hooks
        [12] SteamTools (0.8.2): SteamWorks for SourceMod.
        [13] cURL Extension (1.3.0.0): cURL Extension
        [14] Connect (1.0.0):
        [15] MySQL-DBI (1.4.2): MySQL driver implementation for DBI



All times are GMT -4. The time now is 23:46.

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