Raised This Month: $32 Target: $400
 8% 

CS1.6 MOTD Info


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dt1tg
New Member
Join Date: Apr 2012
Old 04-19-2012 , 09:39   CS1.6 MOTD Info
Reply With Quote #1

Hi

Looked around in the forum for this one.
Is there a plugin where people can type something like "/motd" to see all server information
dt1tg is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 04-19-2012 , 09:57   Re: CS1.6 MOTD Info
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=113925
Moody92 is offline
dt1tg
New Member
Join Date: Apr 2012
Old 04-19-2012 , 11:58   Re: CS1.6 MOTD Info
Reply With Quote #3

When I say MOTD, I mean the MOTD window open but I can input my own information there
__________________
dt1tg is offline
imindfreak
Senior Member
Join Date: Oct 2007
Location: 127.0.0.1
Old 04-19-2012 , 15:28   Re: CS1.6 MOTD Info
Reply With Quote #4

PHP Code:
/* Place a text file in the cstrike directory named mymotd.txt in order to use*/

#include <amxmodx>
#include <amxmisc>

public plugin_init() {
    
register_plugin("MyMOTD""1.0""imindfreak");

    
register_clcmd("say /motd""mymotd", -1);
    
register_clcmd("say_team /motd""mymotd", -1);
    
register_clcmd("motd""mymotd", -1);
}

public 
mymotd(id
{
    
show_motd(id"mymotd.txt""MOTD");  

In your mymotd.txt file, you can use basic HTML. MOTD's are limited to a certain character length.
To bypass that, you would just make it show a website inside the MOTD window using this code :

Sample mymotd.txt to display a website within the MOTD window -
PHP Code:
<html>
<
head>
<
body bgcolor="#000000">
<
meta http-equiv="Refresh" content="0; URL=http://www.yourwebsitehere.com/whateverhere.html">
</
body>
</
head>
</
html
That will show that website page and won't be limited to the character length.
Enjoy, glad to help!
__________________
BeastGaming Community - Map Maker & Coder.

Last edited by imindfreak; 04-19-2012 at 15:31.
imindfreak is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-19-2012 , 15:32   Re: CS1.6 MOTD Info
Reply With Quote #5

Why does everyone write this plugin when it's been written 1000 times in this forum and shouldn't even be written once since you can do it with this:
https://forums.alliedmods.net/showthread.php?t=24092
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
imindfreak
Senior Member
Join Date: Oct 2007
Location: 127.0.0.1
Old 04-19-2012 , 15:36   Re: CS1.6 MOTD Info
Reply With Quote #6

Bro that took me an hour to write...
Spoiler


I don't know, I guess he wanted a specific way
(aka show his own motd / not the default???)
He just needed to search more I'm guessing but
he seems like a nice guy and shit took 2 minutes
to write so whatever ^_^
__________________
BeastGaming Community - Map Maker & Coder.

Last edited by imindfreak; 04-19-2012 at 15:37.
imindfreak is offline
RoaR
Member
Join Date: Dec 2011
Old 04-19-2012 , 15:49   Re: CS1.6 MOTD Info
Reply With Quote #7

What do you want?
RoaR is offline
dt1tg
New Member
Join Date: Apr 2012
Old 04-19-2012 , 17:21   Re: CS1.6 MOTD Info
Reply With Quote #8

Thx exolent, that's what I wanted
__________________
dt1tg is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:45.


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