Raised This Month: $226 Target: $400
 56% 

[CS:GO] Remove Cash & Points Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Papero
Veteran Member
Join Date: Aug 2016
Location: Rimini, 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
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
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:17.


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