AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   show_motd - Website (https://forums.alliedmods.net/showthread.php?t=58152)

Minimum 07-20-2007 00:44

show_motd - Website
 
I have seen this done in a tutorial, but is not working when I try it. I am trying to show a website via motd. When I try the command it just shows the boards url (http://boards.gabionstudios.com/) in the motd, nothing else.

Here is my code:

Plugin Init -
Code:
public plugin_init() {     register_plugin("Gabion IPB Integration", "1.00", "Gabion Studios")         // Registering Player Rows     register_playercolumn("ipb_id","INTEGER UNSIGNED NOT NULL DEFAULT 0;")         // Cvars     register_cvar("ipb_prefix","ipb_")     register_cvar("ipb_url","http://boards.gabionstudios.com")         // Commands     register_concmd("amx_viewboards","cmd_viewboards",ADMIN_ALL)         // Register Component     pl_compid = register_component("Gabion IPB Integration") }

The actual function -
Code:
public cmd_viewboards(id) {     new boardsurl[128]     get_cvar_string("ipb_url",boardsurl,127)     show_motd(id,boardsurl,"Our Boards")     return PLUGIN_HANDLED }

Screenshot:
http://minimum.gabionstudios.com/ima.../motdbug-1.png

Lotion 07-20-2007 01:08

Re: show_motd - Website
 
I'm pretty sure that The Specialists doesn't support HTML in the MOTD, if you are using TS, try it in HL just to see if it works, because i think that is why it's not working.

Minimum 07-20-2007 01:25

Re: show_motd - Website
 
Interesting, I will try that.

EDIT: No luck, tried it on Zombie Panic! and it showed the same thing.

stupok 07-20-2007 01:43

Re: show_motd - Website
 
only CS and a few other mods support html in the motd

The Specialists does not

Minimum 07-20-2007 02:21

Re: show_motd - Website
 
Ahh, that sucks. Well, thanks for the info anyways.


All times are GMT -4. The time now is 21:31.

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