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

Round money bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
skylex
New Member
Join Date: Jan 2024
Old 01-12-2024 , 11:34   Round money bug
Reply With Quote #1

Hello, I've created a new server for my Counter-Strike: Global Offensive gaming community, which is focused on competitive play. I've adjusted the after-round money to 8000 to give players with a boost. However, I've encountered an issue where if someone joins during the pistol round after warmup or at half-time, they receive the maximum money (16k). I'm unsure how to resolve this or what steps to take. Someone suggested posting this problem here. I attempted to fix it by adding a plugin to grant players money and set after-round money to 0, but the issue persists. Any help on resolving this would be appreciated.
skylex is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-12-2024 , 14:18   Re: Round money bug
Reply With Quote #2

sm plugins list

mp_startmoney

...and this is CS:GO game?
__________________
Do not Private Message @me

Last edited by Bacardi; 01-12-2024 at 14:22.
Bacardi is offline
skylex
New Member
Join Date: Jan 2024
Old 01-12-2024 , 16:51   Re: Round money bug
Reply With Quote #3

Yes it's cs:go and i only have this plugin for now (reinstalled everything and still can't find out)
https://forums.alliedmods.net/showthread.php?p=1681434

and startmoney is 800
skylex is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-13-2024 , 06:48   Re: Round money bug
Reply With Quote #4

well... try disable this first.
Code:
"mp_backup_round_auto" = "1"
FCVAR_GAMEDLL FCVAR_RELEASE 
- If enabled will keep in-memory backups to handle reconnecting players even if the backup files aren't written to disk
- (When game_mode 1; game_type 0) You create configure file: ...cfg/gamemode_competitive_server.cfg
and add bottom of file: mp_backup_round_auto 0
- But if you play casual mode, you create this file: ...cfg/gamemode_casual_server.cfg




So, do you want add +$8000 more money to players or set they money account to exactly $8000 ?

Should this happen only once, after pistol round or every round ?



Because cs:go have losing bonus and teamreward bonus what increase very quickly.

There is also cvar : mp_afterroundmoney
This will give extra money on every round to everyone.
__________________
Do not Private Message @me
Bacardi is offline
skylex
New Member
Join Date: Jan 2024
Old 01-13-2024 , 17:33   Re: Round money bug
Reply With Quote #5

I have this already
mp_backup_round_auto 0
mp_backup_round_file ""
mp_backup_round_file_last ""
mp_backup_round_file_pattern ""

I want after the first round, everyone to have max money. But with afterroundmoney people can join in the first round and still get the money
skylex is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-14-2024 , 12:55   Re: Round money bug
Reply With Quote #6

Sorry about delaying your request.

I had tried figure your problem and so on, and what bug ? I can only cooperative with bots what is not same as human players.

I finally found one way a bug, where it grant you both, mp_startmoney + mp_afterroundmoney when half time happen.
I'm not sure is this exactly your problem but it sound similiar.

Here is log (mp_logmoney 1) and seems when player is joinning in server, and is still in team Unassigned, game not fix player money account at that time when round restart.

I had
mp_startmoney 800
mp_afterroundmoney 6666

Code:
Dropped 'Bacardi from server: Disconnect
MasterRequestRestart
Your server needs to be restarted in order to receive the latest update.
L 01/14/2024 - 19:37:39: Your server needs to be restarted in order to receive the latest update.
L 01/14/2024 - 19:37:40: World triggered "Round_Start"
L 01/14/2024 - 19:37:42: "'Bacardi<281><STEAM_1:1:14163588><>" connected, address ""
Client "'Bacardi" connected (192.168.1.2:27005).
L 01/14/2024 - 19:37:43: "'Bacardi<281><STEAM_1:1:14163588><>" STEAM USERID validated
PutClientInServer: no info_player_start on level
L 01/14/2024 - 19:37:45: "'Bacardi<281><STEAM_1:1:14163588><>" entered the game
9451      m_iAccount 16000 -> 800		'Bacardi<281><STEAM_1:1:14163588><>
MasterRequestRestart
Your server needs to be restarted in order to receive the latest update.
L 01/14/2024 - 19:37:49: Your server needs to be restarted in order to receive the latest update.
L 01/14/2024 - 19:37:51: "Quinn<273><BOT>" switched from team <TERRORIST> to <CT>
L 01/14/2024 - 19:37:51: "Hank<274><BOT>" switched from team <CT> to <TERRORIST>
L 01/14/2024 - 19:37:51: "Vinny<275><BOT>" switched from team <TERRORIST> to <CT>
L 01/14/2024 - 19:37:51: "Dave<276><BOT>" switched from team <CT> to <TERRORIST>
L 01/14/2024 - 19:37:51: "Xavier<277><BOT>" switched from team <TERRORIST> to <CT>
L 01/14/2024 - 19:37:51: "Erik<278><BOT>" switched from team <CT> to <TERRORIST>
L 01/14/2024 - 19:37:51: "Ivan<279><BOT>" switched from team <TERRORIST> to <CT>
L 01/14/2024 - 19:37:51: "Tyler<280><BOT>" switched from team <CT> to <TERRORIST>
L 01/14/2024 - 19:37:51: Starting Freeze period
EVERYONE CAN BUY!
L 01/14/2024 - 19:37:51: "Quinn<1><BOT><CT>" money change 800+6666 = $7466
L 01/14/2024 - 19:37:51: "Hank<2><BOT><TERRORIST>" money change 800+6666 = $7466
L 01/14/2024 - 19:37:51: "Vinny<3><BOT><CT>" money change 800+6666 = $7466
L 01/14/2024 - 19:37:51: "Dave<4><BOT><TERRORIST>" money change 800+6666 = $7466
L 01/14/2024 - 19:37:51: "Xavier<5><BOT><CT>" money change 800+6666 = $7466
L 01/14/2024 - 19:37:51: "Erik<6><BOT><TERRORIST>" money change 800+6666 = $7466
L 01/14/2024 - 19:37:51: "Ivan<7><BOT><CT>" money change 800+6666 = $7466
L 01/14/2024 - 19:37:51: "Tyler<8><BOT><TERRORIST>" money change 800+6666 = $7466
L 01/14/2024 - 19:37:51: "'Bacardi<9><STEAM_1:1:14163588><Unassigned>" money change 800+6666 = $7466
L 01/14/2024 - 19:37:51: "Tyler<280><BOT><TERRORIST>" triggered "Got_The_Bomb"
L 01/14/2024 - 19:37:51: MatchStatus: Team "CT" is unset.
L 01/14/2024 - 19:37:51: MatchStatus: Team "TERRORIST" is unset.
L 01/14/2024 - 19:37:51: MatchStatus: Score: 0:3 on map "de_nuke" RoundsPlayed: 3
L 01/14/2024 - 19:37:51: "Quinn<1><BOT><CT>" money change 7466-6666 = $800
L 01/14/2024 - 19:37:51: "Hank<2><BOT><TERRORIST>" money change 7466-6666 = $800
L 01/14/2024 - 19:37:51: "Vinny<3><BOT><CT>" money change 7466-6666 = $800
L 01/14/2024 - 19:37:51: "Dave<4><BOT><TERRORIST>" money change 7466-6666 = $800
L 01/14/2024 - 19:37:51: "Xavier<5><BOT><CT>" money change 7466-6666 = $800
L 01/14/2024 - 19:37:51: "Erik<6><BOT><TERRORIST>" money change 7466-6666 = $800
L 01/14/2024 - 19:37:51: "Ivan<7><BOT><CT>" money change 7466-6666 = $800
L 01/14/2024 - 19:37:51: "Tyler<8><BOT><TERRORIST>" money change 7466-6666 = $800
10150      m_iAccount 16000 -> 800		Hank<274><BOT><>
10150      m_iAccount 16000 -> 800		Xavier<277><BOT><>
10150      m_iAccount 16000 -> 800		Vinny<275><BOT><>
10150      m_iAccount 16000 -> 800		Erik<278><BOT><>
10150      m_iAccount 16000 -> 800		Tyler<280><BOT><>
10150      m_iAccount 16000 -> 800		Dave<276><BOT><>
10150      m_iAccount 800 -> 7466		'Bacardi<281><STEAM_1:1:14163588><>
10150      m_iAccount 16000 -> 800		Ivan<279><BOT><>
10150      m_iAccount 16000 -> 800		Quinn<273><BOT><>
L 01/14/2024 - 19:37:51: "'Bacardi<281><STEAM_1:1:14163588>" switched from team <Unassigned> to <TERRORIST>
MasterRequestRestart
Your server needs to be restarted in order to receive the latest update.
L 01/14/2024 - 19:37:59: Your server needs to be restarted in order to receive the latest update.
L 01/14/2024 - 19:38:06: World triggered "Round_Start"
...I continue look this more.
__________________
Do not Private Message @me
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-15-2024 , 08:51   Re: Round money bug
Reply With Quote #7

Here one version. Take other plugin out from your server.

- Check when pistol round, player join in team after round start, it fix player money to mp_startmoney.
- On 2nd round, all players get mp_maxmoney. Also those who join late in 2nd round.

Plugin try also keep track player money amount on 2nd round only,
so if player spend 16k and reconnect to server on 2nd round, plugin reset money back.

You just need set these in your game mode config file:
mp_startmoney 800
mp_afterroundmoney 8000
mp_maxmoney 16000
Attached Files
File Type: sp Get Plugin or Get Source (moneything.sp - 12 views - 6.1 KB)
__________________
Do not Private Message @me

Last edited by Bacardi; 01-15-2024 at 08:53.
Bacardi is offline
draaagos11
New Member
Join Date: Apr 2023
Old 01-19-2024 , 14:42   Re: Round money bug
Reply With Quote #8

I have tried to create my own version, which I believe is currently functional. I have examined Bacardi's plugin and tested it; however, some players are not receiving anything after the first round. I would appreciate an evaluation of my version.
Attached Files
File Type: sp Get Plugin or Get Source (roundmoney.sp - 27 views - 997 Bytes)

Last edited by draaagos11; 04-16-2024 at 15:47.
draaagos11 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:55.


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