AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   block motd show (https://forums.alliedmods.net/showthread.php?t=113466)

Empowers 12-27-2009 03:37

block motd show
 
Is it possible to block motd show on connect?

Doc-Holiday 12-27-2009 03:51

Re: block motd show
 
Quote:

Originally Posted by Empowers (Post 1032558)
Is it possible to block motd show on connect?


delete the motd.txt from your server :)

worldspawn 12-27-2009 05:36

Re: block motd show
 
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


All times are GMT -4. The time now is 04:15.

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