Raised This Month: $ Target: $400
 0% 

block server message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hyphen
Senior Member
Join Date: Aug 2011
Old 10-30-2011 , 02:58   block server message
Reply With Quote #1

how do hide some 3rd party plugins startup message. ie: some closed source plugin prints it author name on any client connect. How do I hide this message ?. Any ideas ?
hyphen is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-30-2011 , 03:37   Re: block server message
Reply With Quote #2

Delete client_print messages in those plugins.
__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-30-2011 , 03:41   Re: block server message
Reply With Quote #3

If you don't have the source code it's questionable as to whether you should be using it at all (for your own safety).
__________________

Last edited by fysiks; 10-30-2011 at 03:41.
fysiks is offline
hyphen
Senior Member
Join Date: Aug 2011
Old 10-30-2011 , 03:55   Re: block server message
Reply With Quote #4

Delete client_print messages in those plugins.

What a reply.. ah.. I said closed source.. And Im sure what Im using.. But no source available..
hyphen is offline
hyphen
Senior Member
Join Date: Aug 2011
Old 10-30-2011 , 04:13   Re: block server message
Reply With Quote #5

I have tried this with no luck..

Code:
register_srvcmd("client_print", "HideAds");

public HideAds()
{
    new szArg[192];
    read_args( szArg, charsmax( szArg ) );
    remove_quotes( szArg );
    
    if (equal( szArg, "TXT_TO_HIDE" ) )
	return PLUGIN_HANDLED;

    return PLUGIN_CONTINUE;
}

Last edited by hyphen; 10-30-2011 at 04:13.
hyphen is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 10-30-2011 , 06:26   Re: block server message
Reply With Quote #6

You can:
1) HEX edit the compiled plugin and change the message (you won't be able to remove it completely)
2) Use something like you did, but instead of hooking client_print (wtf?) hook the SayText (I guess) message and block it there
3) Disassemble the plugin and remove the message there
Backstabnoob is offline
hyphen
Senior Member
Join Date: Aug 2011
Old 10-30-2011 , 08:32   Re: block server message
Reply With Quote #7

by hex editing I couldn't find the proper string. And disassembly is not possible for me.

hook sayText ?.. how will sayText will get the string ?

Im trying my luck with hex editing..

Last edited by hyphen; 10-30-2011 at 08:35.
hyphen is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 10-30-2011 , 08:52   Re: block server message
Reply With Quote #8

Quote:
Originally Posted by Backstabnoob View Post
You can:
1) HEX edit the compiled plugin and change the message (you won't be able to remove it completely)
2) Use something like you did, but instead of hooking client_print (wtf?) hook the SayText (I guess) message and block it there
3) Disassemble the plugin and remove the message there
Quote:
Originally Posted by hyphen View Post
by hex editing I couldn't find the proper string. And disassembly is not possible for me.

hook sayText ?.. how will sayText will get the string ?

Im trying my luck with hex editing..
Send me a .amxx i am good on hex.

PS: if file size is big then i dont have time to do it
Its take lots of time.

Last edited by .Dare Devil.; 10-30-2011 at 08:52.
.Dare Devil. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-30-2011 , 13:00   Re: block server message
Reply With Quote #9

Quote:
Originally Posted by hyphen View Post
I have tried this with no luck..

Code:
register_srvcmd("client_print", "HideAds");

public HideAds()
{
    new szArg[192];
    read_args( szArg, charsmax( szArg ) );
    remove_quotes( szArg );
    
    if (equal( szArg, "TXT_TO_HIDE" ) )
	return PLUGIN_HANDLED;

    return PLUGIN_CONTINUE;
}
You can't hook client_print() like that.
__________________

Last edited by fysiks; 10-30-2011 at 13:01.
fysiks is offline
hyphen
Senior Member
Join Date: Aug 2011
Old 10-30-2011 , 13:38   Re: block server message
Reply With Quote #10

Yes I guessed that too.. Just trying.. BTW can I get any servers command's arguments by some other methods ?

Last edited by hyphen; 10-30-2011 at 13:38.
hyphen 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 14:23.


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