mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 00:24:35 +00:00
MOTD loop redo
This commit is contained in:
parent
73c77f4d2d
commit
720493515b
1 changed files with 10 additions and 6 deletions
|
|
@ -348,18 +348,22 @@ function sendLoadscreen(%client)
|
||||||
%MOTDMsg2 = "<lmargin:24><Font:univers:18><bitmap:bullet_2><color:" @ $Host::LoadScreenColor2 @ ">" @ $Host::LoadScreenMOTD2;
|
%MOTDMsg2 = "<lmargin:24><Font:univers:18><bitmap:bullet_2><color:" @ $Host::LoadScreenColor2 @ ">" @ $Host::LoadScreenMOTD2;
|
||||||
%MOTDMsg3 = "<lmargin:24><Font:univers:18><bitmap:bullet_2><color:" @ $Host::LoadScreenColor2 @ ">" @ $Host::LoadScreenMOTD3;
|
%MOTDMsg3 = "<lmargin:24><Font:univers:18><bitmap:bullet_2><color:" @ $Host::LoadScreenColor2 @ ">" @ $Host::LoadScreenMOTD3;
|
||||||
%MOTDMsg4 = "<lmargin:24><Font:univers:18><bitmap:bullet_2><color:" @ $Host::LoadScreenColor2 @ ">" @ $Host::LoadScreenMOTD4;
|
%MOTDMsg4 = "<lmargin:24><Font:univers:18><bitmap:bullet_2><color:" @ $Host::LoadScreenColor2 @ ">" @ $Host::LoadScreenMOTD4;
|
||||||
|
|
||||||
//MOTD Loop
|
//MOTD Loop
|
||||||
//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