Raised This Month: $ Target: $400
 0% 

block motd show


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 12-27-2009 , 03:37   block motd show
Reply With Quote #1

Is it possible to block motd show on connect?
Empowers is offline
Send a message via ICQ to Empowers
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 12-27-2009 , 03:51   Re: block motd show
Reply With Quote #2

Quote:
Originally Posted by Empowers View Post
Is it possible to block motd show on connect?

delete the motd.txt from your server
Doc-Holiday is offline
worldspawn
Senior Member
Join Date: Aug 2009
Location: Russia, Yekaterinburg
Old 12-27-2009 , 05:36   Re: block motd show
Reply With Quote #3

and it will appear again if u restart your server(not with sv_restart)
there is such plugin but it is unapproved

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Disable startup MOTD"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"

new cvarbool:saw[33]

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_message(get_user_msgid("MOTD"), "message_MOTD")
    
    
cvar register_cvar("amx_disable_motd""1")
}

public 
client_connect(id)
{
    
saw[id] = false
}

public 
message_MOTD(const MsgId, const MsgDest, const MsgEntity)
{
    if(!
saw[MsgEntity] && get_pcvar_num(cvar))
    {
        if(
get_msg_arg_int(1) == 1)
        {
            
saw[MsgEntity] = true
            
return PLUGIN_HANDLED
        
}        
    }
    return 
PLUGIN_CONTINUE

there are some people saying that there is other way to block it, but for me their ways didn't work at all
worldspawn is offline
Send a message via ICQ to worldspawn Send a message via Skype™ to worldspawn
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 04:15.


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