AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   Solved No motd shows up? CSGO - Plugin Created (https://forums.alliedmods.net/showthread.php?t=303349)

Nexicon 12-03-2017 14:43

No motd shows up? CSGO - Plugin Created
 
Hello,

I have been trying all day to find a cvar or anything else why my servers motd wont show up... Can anyone help or tell me anything?

asdfxD 12-03-2017 14:55

Re: No motd shows up? CSGO
 
u need this..

sv_disable_motd 0

Nexicon 12-03-2017 16:15

Re: No motd shows up? CSGO
 
I already have that command on in server.cfg ... Idk why it wont work

Maxximou5 12-03-2017 16:48

Re: No motd shows up? CSGO
 
Do you have
Code:

sm_cvar sv_disable_motd 0
and not just
Code:

sv_disable_motd
?

Nexicon 12-03-2017 16:59

Re: No motd shows up? CSGO
 
Quote:

Originally Posted by Maxximou5 (Post 2564349)
Do you have
Code:

sm_cvar sv_disable_motd 0
and not just
Code:

sv_disable_motd
?

Did sm_cvar sv_disable_motd 0 in console on server with !rcon sm_cvar sv_disable_motd 0 and it changed but wont give me any MOTD when i join the server... And set sm_cvar sv_disable_motd 0 in server.cfg too.... Restarted server

Nexicon 12-03-2017 18:03

Re: No motd shows up? CSGO
 
It works if i type sm_cvar sv_disable_motd 0 in chat and rejoin the server but after map change/restart its back to normal settings

Nexicon 12-03-2017 18:23

Re: No motd shows up? CSGO
 
Fixed by creating this plugin

Code:

#include <sourcemod>
#pragma semicolon 1

public Plugin:myinfo =
{
        name = "Terrible Enable sv_disable_motd 0",
        author = "Sheepdude",
        description = "Sets sm_cvar sv_disable_motd 0 on map start",
        version = "0.02",
        url = "https://forums.alliedmods.net/showthread.php?t=303349"
};

new Handle:sv_disable_motd = INVALID_HANDLE;

public OnPluginStart()
{
        sv_disable_motd = FindConVar("sv_disable_motd");
        HookEvent("round_freeze_end", OnNewRound, EventHookMode_Pre);
}

public OnNewRound(Handle:event, const String:name[], bool:dontBroadcast)
{
        if(sv_disable_motd != INVALID_HANDLE)
                SetConVarInt(sv_disable_motd, 0);
}

Thanks for letting me know about sv_disable_motd
Edited from tefullalltalk plugin :) https://forums.alliedmods.net/showth...=155895&page=2


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

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