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

[CSGO] Hide cash gain message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sansaurithbane
Junior Member
Join Date: Jun 2013
Old 06-30-2013 , 21:15   [CSGO] Hide cash gain message
Reply With Quote #1

Is there a way to hide cash gain messages that appear in the chat window in CSGO?
For example "You have gained $300" etc.

I tried searching, but found nothing previously.
Sansaurithbane is offline
mcpan313
Senior Member
Join Date: Mar 2010
Old 07-01-2013 , 02:56   Re: [CSGO] Hide cash gain message
Reply With Quote #2

Hook TextMsg usermsg, and block it.

Example
PHP Code:
public OnPluginStart()
{
    
HookUserMessage(GetUserMessageId("TextMsg"), MsgHook_AdjustMoneytrue);
}

public 
Action:MsgHook_AdjustMoney(UserMsg:msg_idHandle:msg, const players[], playersNumbool:reliablebool:init)
{
    
decl String:buffer[64];
    
PbReadString(msg"params"buffersizeof(buffer), 0);

    if (
StrEqual(buffer"#Player_Cash_Award_Killed_Enemy"))
    {
        return 
Plugin_Handled;
    }

    return 
Plugin_Continue;
}

// form csgo\resource\csgo_english.txt

// Player_Cash_Award_Kill_Teammate
// Player_Cash_Award_Killed_VIP
// Player_Cash_Award_Killed_Enemy_Generic
// Player_Cash_Award_Killed_Enemy
// Player_Cash_Award_Bomb_Planted
// Player_Cash_Award_Bomb_Defused
// Player_Cash_Award_Rescued_Hostage
// Player_Cash_Award_Interact_Hostage
// Player_Cash_Award_Respawn
// Player_Cash_Award_Get_Killed
// Player_Cash_Award_Damage_Hostage
// Player_Cash_Award_Kill_Hostage
// Player_Point_Award_Killed_Enemy
// Player_Point_Award_Killed_Enemy_Plural
// Player_Point_Award_Assist_Enemy
// Player_Point_Award_Assist_Enemy_Plural

// Team_Cash_Award_T_Win_Bomb
// Team_Cash_Award_Elim_Hostage
// Team_Cash_Award_Elim_Bomb
// Team_Cash_Award_Win_Time
// Team_Cash_Award_Win_Defuse_Bomb
// Team_Cash_Award_Win_Hostages_Rescue
// Team_Cash_Award_Win_Hostage_Rescue
// Team_Cash_Award_Loser_Bonus
// Team_Cash_Award_Loser_Zero
// Team_Cash_Award_Rescued_Hostage
// Team_Cash_Award_Hostage_Interaction
// Team_Cash_Award_Hostage_Alive
// Team_Cash_Award_Planted_Bomb_But_Defused
// Team_Cash_Award_CT_VIP_Escaped
// Team_Cash_Award_T_VIP_Killed
// Team_Cash_Award_no_income
// Team_Cash_Award_Generic
// Team_Cash_Award_Custom 
__________________
sorry, for my poor english.

Last edited by mcpan313; 07-01-2013 at 03:10.
mcpan313 is offline
Send a message via MSN to mcpan313
Sansaurithbane
Junior Member
Join Date: Jun 2013
Old 07-02-2013 , 14:31   Re: [CSGO] Hide cash gain message
Reply With Quote #3

That worked, thanks.
Sansaurithbane 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 23:57.


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