Raised This Month: $404 Target: $400
 101% 

DBMotd (Date Based Motd)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose        Approver:   Hawk552 (427)
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 07-16-2009 , 10:49   DBMotd (Date Based Motd)
Reply With Quote #1

Date Based Motd 1.0

Description:
This plugin will change your motd depending on date for example if you have a file in cstrike/motds named YearMonthDay.txt will when the server thinks that date is be used as your motd when that date is over will it replace it with either a new date or cstrike/motds/default.txt
Depending on cvar will it check the date On round end or roundstart or both

Cvars:
motd_check 2 //When to check the date 1 = at start 2 = end 3 = end and start

Commands:
/thedate - Tells you what the date is incase you dont know what the servers is.
Credits:
Exolent[jNr] - Replace file function and general fix.
Changelog:
0.1
-Idea -start coding
0.5 -Replace function by Exolent
0.6 -Fix of code
1.0 -Release
How to make a motd appear on a specific date:
First i suggest you use the command /thedate (it will say YYYYMMDD (no 0 is needed if its for example januari)) so you know what date you should go after since it will check the servers date.
Then in cstrike/motds/ create a text file named YYYYMMDD.txt (The date you want it to show up YYYY = year MM = month DD = Day) then you just write in it as any motd.
Example: cstrike/motds/2009717.txt would result in a new motd the 17th july 2009 (tomorrow that is)
Usage:
Idk maybe a contest.
To-do:
Preview command
improve the helper
Note:
If the new motd thats supposed to replace the old one is longer than the character limit (which i think is around 1500) wont the new one appear.

DBMotd helper:
Microsoft visual studio express 2008 c#
.NET Framework 3.5


[IMG]http://img267.**************/img267/7940/screenshotv.th.jpg[/IMG]

Download page: http://dbmotd.vincentsweb.com/downloads.html
Attached Files
File Type: sma Get Plugin or Get Source (dbmotd.sma - 965 views - 5.0 KB)
File Type: zip cstrike.zip (468 Bytes, 512 views)

Last edited by micke1101; 09-15-2009 at 02:28.
micke1101 is offline
alias_retaer
Member
Join Date: Jul 2009
Old 07-16-2009 , 11:04   Re: DBMotd (Date Based Motd)
Reply With Quote #2

Nice really .
alias_retaer is offline
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 07-17-2009 , 09:20   Re: DBMotd (Date Based Motd)
Reply With Quote #3

Thank you.
_____________________________________________ ________
Added DBMotd helper its a program that lets you preview the motd code you write in the text box and makes it easy to select date and save it as it should be (name) and the code you write in textbox.
Of course is source there to its made in microsoft visual studio c# express and you need the latest .net framework to use this one (3.5)
Maybe ill add something more to this one ;)
micke1101 is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 07-17-2009 , 10:56   Re: DBMotd (Date Based Motd)
Reply With Quote #4

Really love it!

Also the program!


Suggestion:
- Make it so that when you save the file, it automatic saves as a motd_*.txt file.
- The pictures aren't loading well in the program, but they do in the server
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 07-17-2009 , 12:02   Re: DBMotd (Date Based Motd)
Reply With Quote #5

Quote:
Originally Posted by crazyeffect View Post
Really love it!

Also the program!


Suggestion:
- Make it so that when you save the file, it automatic saves as a motd_*.txt file.
- The pictures aren't loading well in the program, but they do in the server
Thank you

On the suggestions, if you select a date will it automaticly name it YYYYMMDD.txt (but thats only if 1 date is selected maybe should change that)
Lol yea it takes a little time before its done loading.

To do:
auto date even if not selected.
Icon (Gotta find one ) http://img156.**************/img156/3...dhelperbig.jpg
Make your own default. reads from defaultmotd.txt that has to lie in the same directory.
Add the correct limit of characters now its 1500 but its not the exact limit.

Edit

Updated the attached file with the above.

Last edited by micke1101; 07-18-2009 at 06:59.
micke1101 is offline
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 07-20-2009 , 14:10   Re: DBMotd (Date Based Motd)
Reply With Quote #6

Hi ive been updating the motd tool together with crazyeffect since he appearently saw more potentional in it.
So he created a website: http://www.crazyeffect.net/dbmotd/
Updates (can have missed something):
- Languages (Now will it read language.txt so it can translate itself)
- Skins (just a little color change big deal )
- Update System (help -> update will check if ive made a new fix update with maybe more languages or bug fix)
- Menu Bar (File, Options, Help) (this was appearently needed)
- Setup.exe (will now be installed as a normal program)
- Settings.txt (Automatic Save)
- A new defaultmotd.txt.


Download: http://www.crazyeffect.net/dbmotd/downloads.html


To do:
More languages

Last edited by micke1101; 09-15-2009 at 02:27.
micke1101 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-14-2009 , 16:02   Re: DBMotd (Date Based Motd)
Reply With Quote #7

This plugin is well done.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Approved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
micke1101
Veteran Member
Join Date: Jan 2008
Location: Banned-town
Old 08-18-2009 , 01:40   Re: DBMotd (Date Based Motd)
Reply With Quote #8

Thank you Hawk.

Yes i would like to that information ;)

and i also thought of a /preview command
micke1101 is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 09-14-2009 , 14:41   Re: DBMotd (Date Based Motd)
Reply With Quote #9

Hawk, respond


Also, new site:
http://dbmotd.vincentsweb.com/
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
Old 01-02-2010, 16:07
Julian de L. Lopes
This message has been deleted by Julian de L. Lopes.
Reply


Thread Tools
Display Modes

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 13:24.


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