How to block money award?

Please post any questions about developing your plugin here. Please use the search function before posting!
canibozz
Member
Posts: 32
Joined: Wed Apr 11, 2018 7:55 am

How to block money award?

Postby canibozz » Thu May 17, 2018 1:28 pm

Hello guys,

i stuck once again with a probably little problem.
Game: CS:GO.

As known, you're getting money for killsin CSGO.
Is there a way to stop this or at least the message?

Code: Select all

 +$150: Award for neutralizing an enemy with the X.


I didn't find an event which i can block.
Any ideas?
Ehrmann
Junior Member
Posts: 10
Joined: Fri Apr 14, 2017 12:18 pm
Location: Moscow

Re: How to block money award?

Postby Ehrmann » Thu May 17, 2018 2:35 pm

Hello. If you want do this for all players, you can use "cash_player_killed_enemy_default 0" cvar. Just add this to your game mod config.
canibozz
Member
Posts: 32
Joined: Wed Apr 11, 2018 7:55 am

Re: How to block money award?

Postby canibozz » Thu May 17, 2018 5:40 pm

It still prints:

Code: Select all

 +$0: Award for neutralizing an enemy with the SSG 08.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Re: How to block money award?

Postby satoon101 » Thu May 17, 2018 6:21 pm

Ha! Nice one Valve/HPE...

To remove the message, you can use a HookUserMessage on SayText2. I am not sure what that specific message is, but you can always print it out or search through the resource file that stores these translations.
Image
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: How to block money award?

Postby Ayuto » Thu May 17, 2018 6:28 pm

Before doing that I would also try setting these two variables to 0:
  • mp_playercashawards
  • mp_teamcashawards
canibozz
Member
Posts: 32
Joined: Wed Apr 11, 2018 7:55 am

Re: How to block money award?

Postby canibozz » Thu May 17, 2018 6:35 pm

That worked! Thank you very much
User avatar
VinciT
Senior Member
Posts: 331
Joined: Thu Dec 18, 2014 2:41 am

Re: How to block money award?

Postby VinciT » Thu May 17, 2018 6:44 pm

satoon101 wrote:To remove the message, you can use a HookUserMessage on SayText2.

I think it should be TextMsg, but HookUserMessage doesn't have it implemented.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 24 guests