mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 08:34:43 +00:00
MOTD loop redo
This commit is contained in:
parent
73c77f4d2d
commit
720493515b
1 changed files with 10 additions and 6 deletions
|
|
@ -353,13 +353,17 @@ function sendLoadscreen(%client)
|
||||||
//Leave line " " in ServerPrefs to not show a line
|
//Leave line " " in ServerPrefs to not show a line
|
||||||
for(%x = 1; %x <= 4; %x++)
|
for(%x = 1; %x <= 4; %x++)
|
||||||
{
|
{
|
||||||
if( $Host::LoadScreenMOTD[%x] !$= " " && %x $= 1 )
|
if($Host::LoadScreenMOTD[%x] !$= " " && $Host::LoadScreenMOTD[%x] !$= "")
|
||||||
{
|
{
|
||||||
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDHeader);
|
if(%x $= 1)
|
||||||
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDMsg[%x]);
|
{
|
||||||
|
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDHeader);
|
||||||
|
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDMsg[%x]);
|
||||||
|
%header = 1; //No other lines without the header
|
||||||
|
}
|
||||||
|
else if(%header)
|
||||||
|
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDMsg[%x]);
|
||||||
}
|
}
|
||||||
else if( $Host::LoadScreenMOTD[%x] !$= " " )
|
|
||||||
messageClient(%client, 'MsgDebriefAddLine', "", %MOTDMsg[%x]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Normal Screen Always in the Background
|
// Normal Screen Always in the Background
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue