Overkillz Posted June 1, 2015 Share Posted June 1, 2015 Dear guys, I would like to create an script which drop a message about the new maps which have been added in 24 hours to the server. -What is the main point of this topic ? I would like to get the functions that i should/must use to do it. I hope you can help me, thanks for your time. Regards. Link to comment
xXMADEXx Posted June 1, 2015 Share Posted June 1, 2015 I'm not sure that theres a function for this. However, is what you can do is create a table with all the server maps on, with the time that they were added. Something like this: local maps = { { name = 'Map 1', month = 6, day = 1, year = 2015 }, { name = 'Map 2', month = 5, day = 10, year = 2015 }, { name = 'Map 3', month = 9, day = 21, year = 2016 }, { name = 'Map 4', month = 6, day = 1, year = 2014 }, } function outputRecentMaps ( ) local t = getRealTime ( ); for _, i in ipairs ( maps ) do if ( t.year+1900 == i.year and t.month+1 == i.month and t.monthday == i.day ) then outputChatBOx ( tostring ( i.name ) ); end end end outputRecentMaps ( ) Link to comment
AboShanab Posted June 1, 2015 Share Posted June 1, 2015 @Made : outputChatBOx -> outputChatBox Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now