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

Can we remove the hint message?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alphaearth
Senior Member
Join Date: Feb 2018
Location: Turkey
Old 10-24-2018 , 00:40   Can we remove the hint message?
Reply With Quote #1

Can we remove the hint message that "bomb has been planted, 40 second left to explosion"
__________________
alphaearth is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 10-24-2018 , 02:35   Re: Can we remove the hint message?
Reply With Quote #2

https://wiki.alliedmods.net/Counter-...e_UserMessages

My first idea would be hooking user messages HintText and KeyHintText, looking what's what and printing the response through a fake logerror ( my favourite way since it logs to file and server, and gives me an excuse to look at error logs )
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-24-2018 , 02:42   Re: Can we remove the hint message?
Reply With Quote #3

*csgo
I tested block all UserMsg, and it works.
However, TextMsg appear when bomb is planted... don't know does it work different way.

But you can clear that message.
PHP Code:
public void OnPluginStart()
{
    
HookEvent("bomb_planted"bomb_plantedEventHookMode_PostNoCopy);
}

public 
void bomb_planted(Event eventchar[] namebool dontBroadcast)
{
    
PrintCenterTextAll(""); // clear/hide CenterMsg

__________________
Do not Private Message @me

Last edited by Bacardi; 10-24-2018 at 12:58.
Bacardi is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 10-24-2018 , 02:47   Re: Can we remove the hint message?
Reply With Quote #4

Quote:
Originally Posted by Bacardi View Post
I tested block all UserMsg, and it works.
However, TextMsg appear when bomb is planted... don't know does it work different way.

But you can clear that message.
PHP Code:
public void OnPluginStart()
{
    
HookEvent("bomb_planted"bomb_plantedEventHookMode_PostNoCopy);
}

public 
void bomb_planted(Event eventchar[] namebool dontBroadcast)
{
    
PrintCenterTextAll(""); // clear/hide CenterMsg

And blocking the usermessages of TextMsg is impossible?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-24-2018 , 03:31   Re: Can we remove the hint message?
Reply With Quote #5

Quote:
Originally Posted by eyal282 View Post
And blocking the usermessages of TextMsg is impossible?
You can block TextMsg, but in bomb_planted action this message still appear, don't know why.

And event "bomb_planted" trigger this message, so could this be client side usermessage ? Dunno
__________________
Do not Private Message @me
Bacardi is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 10-24-2018 , 12:22   Re: Can we remove the hint message?
Reply With Quote #6

Quote:
Originally Posted by Bacardi View Post
You can block TextMsg, but in bomb_planted action this message still appear, don't know why.

And event "bomb_planted" trigger this message, so could this be client side usermessage ? Dunno
Can you send a screenshot with what you mean?
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 10-24-2018 , 16:15   Re: Can we remove the hint message?
Reply With Quote #7

Sounds like the server is sending the event seperate to a hint usermessage.
__________________
Neuro Toxin is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-24-2018 , 16:33   Re: Can we remove the hint message?
Reply With Quote #8

Quote:
Originally Posted by eyal282 View Post
Can you send a screenshot with what you mean?
Screenshot would not help... need create a video.

Anyway, I checked.
Event "bomb_planted" trigger usermessage from client side:
Code:
"Cstrike_TitlesTXT_Bomb_Planted"		"The bomb has been planted.\n%s1 seconds to detonation."
...and some other changes happen in HUD.

Server can't block this specific message. However you can hide message by executing new message right after.
__________________
Do not Private Message @me
Bacardi 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 15:20.


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