AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   Solved [L4D2] MOTD Scrolling, How? (https://forums.alliedmods.net/showthread.php?t=328357)

SEGA EMPRESS ERIS 11-06-2020 04:15

[L4D2] MOTD Scrolling, How?
 
OK I noticed when text in MOTD gets long enough it doesnt automatically add in the scroll wheel so i was wondering how do i enable this for MOTD?

thank you.

GsiX 11-06-2020 06:28

Re: [L4D2] MOTD Scrolling, How?
 
Hi there good Sir,
Excuse this humble learner for taking a ride on your post.
I v try writing an html code on it with no success. It appear that the motd only link you to external site. If there another way doing this i also interested to know. Doesn't matter in html, js or php.

SEGA EMPRESS ERIS 11-10-2020 12:11

Re: [L4D2] MOTD Scrolling, How?
 
Anyone? this is really bothersome I and some others really want to know how this is done for L4D2.

Marttt 11-10-2020 17:05

Re: [L4D2] MOTD Scrolling, How?
 
I never did a MOTD but in HTML you can play with CSS for the scrolling attribute.

Here is a link for more info.

https://www.w3schools.com/cssref/pr_pos_overflow.asp

I don't know if javascript runs well on MOTD for L4D2, but if the CSS don't work, maybe you have to hack with js

SEGA EMPRESS ERIS 11-11-2020 07:55

Re: [L4D2] MOTD Scrolling, How?
 
object.style.overflow="scroll" kinda works it adds the scroll wheel but when i add more lines it doesnt expand the scroll wheel it just adds it, more ideas would be nice. especially if they can find 1 for l4d2

GsiX 11-12-2020 11:27

Re: [L4D2] MOTD Scrolling, How?
 
hummm... this intrigue me.. never try css on it.. i ll play with it when i have extra time..

EDIT: @XJR15 if you dont mind show your html code? i have few time to spare to play with the motd?

SEGA EMPRESS ERIS 11-13-2020 06:03

Re: [L4D2] MOTD Scrolling, How?
 
Quote:

Originally Posted by GsiX (Post 2724661)
hummm... this intrigue me.. never try css on it.. i ll play with it when i have extra time..

EDIT: @XJR15 if you dont mind show your html code? i have few time to spare to play with the motd?

i had object.style.overflow="scroll" at the bottom of my motd it added in the scroll wheel but when i add more words it doesnt work i honestly dont know how the code for this is suppose to work as there was no instructions outside of that code itself.

GsiX 11-13-2020 07:50

Re: [L4D2] MOTD Scrolling, How?
 
mine work correctly.. ok look.. i cant help you without looking at your html, css, js or whatever to see what wrong...
i v passed my free time.. however i v write a simple example for you.. hope this help.

PHP Code:

<html>
    <
head>
        <
title>L4D2 MOTD Test</title>
    </
head>
    <
body style="margin:0px;padding:1px;background:#000 000;">
        <
article style="width:100%;height:100%">
            <
img src="https://steamcdn-a.akamaihd.net/steam/apps/550/capsule_616x353.jpg?t=1601578341" style="width:50%;height:50%" />
            <
img src="https://wallpaperaccess.com/full/425811.jpg" style="width:100%;height:100%" />
            <
img src="https://s2.best-wallpaper.net/wallpaper/1920x1080/1611/Left-4-Dead-2-PC-games_1920x1080.jpg" style="width:100%;height:100%" />
            <
div style="width:100%;height:100%;overflow:scroll">
                <
img src="https://images3.alphacoders.com/142/142549.jpg" style="width:150%;height:100%" />
            </
div>
            <
img src="https://s2.best-wallpaper.net/wallpaper/1920x1080/1611/Left-4-Dead-2-PC-games_1920x1080.jpg" style="width:100%;height:100%" />
        </
article>
    </
body>
</
html

Edit: Ok since i don't see/not allowowed to see what wrong in your html, i just give you my hunch.
Wrap the object into a div, target the particular div for overflow.


Hope this help

Edit2: this gone has gone outside sp.
Dear moderator, o/t pls delete but don't ban me. :)

valinaghi 11-15-2020 10:00

Re: [L4D2] MOTD Scrolling, How?
 
Quote:

Originally Posted by GsiX (Post 2724765)
mine work correctly.. ok look.. i cant help you without looking at your html, css, js or whatever to see what wrong...
i v passed my free time.. however i v write a simple example for you.. hope this help.

PHP Code:

<html>
    <
head>
        <
title>L4D2 MOTD Test</title>
    </
head>
    <
body style="margin:0px;padding:1px;background:#000 000;">
        <
article style="width:100%;height:100%">
            <
img src="https://steamcdn-a.akamaihd.net/steam/apps/550/capsule_616x353.jpg?t=1601578341" style="width:50%;height:50%" />
            <
img src="https://wallpaperaccess.com/full/425811.jpg" style="width:100%;height:100%" />
            <
img src="https://s2.best-wallpaper.net/wallpaper/1920x1080/1611/Left-4-Dead-2-PC-games_1920x1080.jpg" style="width:100%;height:100%" />
            <
div style="width:100%;height:100%;overflow:scroll">
                <
img src="https://images3.alphacoders.com/142/142549.jpg" style="width:150%;height:100%" />
            </
div>
            <
img src="https://s2.best-wallpaper.net/wallpaper/1920x1080/1611/Left-4-Dead-2-PC-games_1920x1080.jpg" style="width:100%;height:100%" />
        </
article>
    </
body>
</
html

Edit: Ok since i don't see/not allowowed to see what wrong in your html, i just give you my hunch.
Wrap the object into a div, target the particular div for overflow.


Hope this help

Edit2: this gone has gone outside sp.
Dear moderator, o/t pls delete but don't ban me. :)

thank you a lot. I had these problem too. and I fix it

SEGA EMPRESS ERIS 11-17-2020 19:10

Re: [L4D2] MOTD Scrolling, How?
 
Quote:

Originally Posted by GsiX (Post 2724765)
mine work correctly.. ok look.. i cant help you without looking at your html, css, js or whatever to see what wrong...
i v passed my free time.. however i v write a simple example for you.. hope this help.

PHP Code:

<html>
    <
head>
        <
title>L4D2 MOTD Test</title>
    </
head>
    <
body style="margin:0px;padding:1px;background:#000 000;">
        <
article style="width:100%;height:100%">
            <
img src="https://steamcdn-a.akamaihd.net/steam/apps/550/capsule_616x353.jpg?t=1601578341" style="width:50%;height:50%" />
            <
img src="https://wallpaperaccess.com/full/425811.jpg" style="width:100%;height:100%" />
            <
img src="https://s2.best-wallpaper.net/wallpaper/1920x1080/1611/Left-4-Dead-2-PC-games_1920x1080.jpg" style="width:100%;height:100%" />
            <
div style="width:100%;height:100%;overflow:scroll">
                <
img src="https://images3.alphacoders.com/142/142549.jpg" style="width:150%;height:100%" />
            </
div>
            <
img src="https://s2.best-wallpaper.net/wallpaper/1920x1080/1611/Left-4-Dead-2-PC-games_1920x1080.jpg" style="width:100%;height:100%" />
        </
article>
    </
body>
</
html

Edit: Ok since i don't see/not allowowed to see what wrong in your html, i just give you my hunch.
Wrap the object into a div, target the particular div for overflow.


Hope this help

Edit2: this gone has gone outside sp.
Dear moderator, o/t pls delete but don't ban me. :)


OK this is mine without the smoker and boomer info the scroll wheel is there but its not really even necessary if u erase all of it after "Infinite Ammo!" please help me adjust my motd to fit a working scroll wheel in there with any amount of words.

PHP Code:

type !csm in chat to change your survivor character.
type !join in chat if stuck in spectate.
Right Click to pass your throwable to a teammate when near them.
You can crawl when incapacitated with W key.
type !pickbot !nextbot !prevbot in chat to select a bot when on survivor team or when DEAD.

L4D2 Arcade Edition:
Tier 1 Weapons are now Tier 2 level balanced.
Pump shotguns deal double damage.
MP5 has 30 roundsAK47 damage 58Higher Rate of Fire than AK47Lower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.
Uzi has 40 roundsSCAR damage 44Highest Rate of Fire than all guns in the gameLower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.
SMG Silencedhas 60 roundsSG552 damage 332nd Highest Rate of Fire gun in the gameLower Range than Tier 2 RiflesOverall better accuracy than Tier 2 Rifles.
M16 deals 40 damage from standard 33to give it more stopping power than SG552which has a scope to compensate.
Infinite AmmoSmoker Cloud deals 5 damageto a maximum of 30 damageBoomer Explosion deals 30 damage in a small radius.
<
div style="width:100%;height:100%;overflow:scroll"
</
div



All times are GMT -4. The time now is 05:52.

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