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

[CS:GO] Remove Cash & Points Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 11-01-2018 , 14:20   Re: [CS:GO] Remove Cash & Points Messages
Reply With Quote #11

Quote:
Originally Posted by sneaK View Post
The latest strings have been added, I'll consider making cvars in the future for points/cash/saved messages when I have some more time.
Maybe a file that contains a list of messages to block, for example:
PHP Code:
#Player_Cash_Award_Killed_Enemy
#Team_Cash_Award_Win_Hostages_Rescue
... 
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!

Last edited by Papero; 11-01-2018 at 14:20.
Papero is offline
mug1wara
AlliedModders Donor
Join Date: Jun 2018
Old 11-01-2018 , 14:37   Re: [CS:GO] Remove Cash & Points Messages
Reply With Quote #12

Instead of having like 20 if statements, you could also: if (StrContains(buffer, "Award") != -1) { // then stop }
mug1wara is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 11-02-2018 , 12:22   Re: [CS:GO] Remove Cash & Points Messages
Reply With Quote #13

Ideally I'd like to store the strings in enums, then use cvars to enable/disable groups of them. I thought of using StrContains, but as I remember, some of those keywords are used elsewhere in strings we do not wish to block.

Also, PR's are always welcome
__________________
sneaK is offline
Sandervraun
Senior Member
Join Date: May 2019
Location: Denmark
Old 07-04-2020 , 15:45   Re: [CS:GO] Remove Cash & Points Messages
Reply With Quote #14

Works nice Thanks
Sandervraun is offline
UnknownReaper
Junior Member
Join Date: Jun 2020
Old 12-11-2020 , 07:59   Re: [CS:GO] Remove Cash & Points Messages
Reply With Quote #15

A possible bug, whenever I apply this plugin , all my chat info doesn't appear.
For example whenever I type command which should reply me in chat with something it comes out blank but once I remove the plugin all the info in my chat starts working.

Please Fix if you can thanks
UnknownReaper is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 05-04-2021 , 19:37   Re: [CS:GO] Remove Cash & Points Messages
Reply With Quote #16

This removes a lot more than it should, like KZ commands.
Ejziponken is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 11-05-2022 , 11:13   Re: [CS:GO] Remove Cash & Points Messages
Reply With Quote #17

Quote:
Originally Posted by Ejziponken View Post
This removes a lot more than it should, like KZ commands.
I cannot support compatibility with every other plugin which takes over/modifies chat processing - this plugin isn't a good use case for fully-fledged timers. This simply blocks very specific CSGO strings regarding player cash rewards, team bonuses, etc.

Updated to v1.5 to cover the new bonus notices:
Quote:
Your team will be eligible for short-handed income in X rounds.
Your team will be eligible for short-handed income in 1 round.
Each enemy has received $X short-handed income.
Recompiled binary with SM 1.11, so latest SM 1.11+ is required for the precompiled binary.

Download v1.5
__________________
sneaK is offline
egorka2
Member
Join Date: Jun 2010
Old 11-25-2022 , 12:08   Re: [CS:GO] Remove Cash & Points Messages
Reply With Quote #18

This plugins is only for clean servers, because it blocks almost all plugin chat messages
egorka2 is offline
Wizzardoff
Senior Member
Join Date: Dec 2022
Old 07-25-2023 , 17:42   Re: [CS:GO] Remove Cash & Points Messages
Reply With Quote #19

does it block advertising plugins? Like advertisments in chat,server messages etc.

EDIT: It doesnt block advetrisements pklugin but it block for ex Abner round end sounds. It just need a whitelist or similar for other plugins. Otherwise great plugin

Last edited by Wizzardoff; 07-30-2023 at 13:22.
Wizzardoff 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 05:12.


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