AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   block server message (https://forums.alliedmods.net/showthread.php?t=170885)

hyphen 10-30-2011 02:58

block server message
 
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 ?

Evaldas.Grigas 10-30-2011 03:37

Re: block server message
 
Delete client_print messages in those plugins.

fysiks 10-30-2011 03:41

Re: block server message
 
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).

hyphen 10-30-2011 03:55

Re: block server message
 
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 10-30-2011 04:13

Re: block server message
 
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;
}


Backstabnoob 10-30-2011 06:26

Re: block server message
 
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

hyphen 10-30-2011 08:32

Re: block server message
 
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..

.Dare Devil. 10-30-2011 08:52

Re: block server message
 
Quote:

Originally Posted by Backstabnoob (Post 1586260)
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 (Post 1586370)
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.

fysiks 10-30-2011 13:00

Re: block server message
 
Quote:

Originally Posted by hyphen (Post 1586211)
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.

hyphen 10-30-2011 13:38

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


All times are GMT -4. The time now is 14:23.

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