Poll: Do you also want these plugins?
You do not have permission to vote in this poll.
Yes
62.50%
5 62.50%
No
37.50%
3 37.50%
Total 8 vote(s) 100%
* You voted for this item. [Show Results]

Request Need Time Plugin and Server Msg Plugin
#11
(07-23-2013, 18:34)8q4s8 Wrote: Did you update the plugin with the code that I posted?

No, I dont know how to update/edit plugins Confused
Will u plz tell me how? or will u edit for me?
Reply

#12
http://www.itsmods.com/forum/showthread.php?tid=5833
Reply

#13
(07-23-2013, 18:44)8q4s8 Wrote: http://www.itsmods.com/forum/showthread.php?tid=5833

I dont have Microsoft Visual plz edit this string Undecided
Reply

#14
get the Plugin Maker from: @SailorMoon
that works to create simple plugins, or download Microsoft Visual Studio
Reply

#15
(07-23-2013, 16:28)8q4s8 Wrote:
Code:
using System; using System.Collections.Generic; using Addon; using System.Text; using System.Timers; namespace ClassLibrary1 { public class Class1:CPlugin { List<string> MessageList = new List<string>(); Timer timer = new Timer(); int interval; int Messages; int CurrentMSG; public override void OnServerLoad() { Config(); ServerPrint("TimedMessage Plugin by 8Q4S8 loaded!"); } void handler(object s, ElapsedEventArgs e) { if (Messages <= CurrentMSG) { CurrentMSG = 0; } if (MessageList[CurrentMSG] != "!time") { ServerSay(MessageList[CurrentMSG], true); } else { ServerSay("Time (UTC " + TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).TotalHours + "): ^2" + DateTime.Now.ToLongTimeString(), true); } CurrentMSG++; } void Config() { try { interval = int.Parse(GetServerCFG("TimedMSG", "interval", "")); Messages = int.Parse(GetServerCFG("TimedMSG", "Messages", "")); if (Messages != 0) { CurrentMSG = 0; for (int i = 1; i <= Messages; i++) { MessageList.Add(GetServerCFG("TimedMSG", "MSG" + i.ToString(), "")); } } timer.Interval = 1000 * interval; timer.Elapsed += new ElapsedEventHandler(handler); timer.Enabled = true; } catch (Exception e) { ServerPrint(e.Message); } } } }

Edit this string to the colors you like and compile it
Code:
ServerSay("Time (UTC + " + TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).TotalHours + "): ^2" + DateTime.Now.ToLongTimeString(), true);

then you can use MSG1=!time to show the time.

Thanks it works, Compiled using SailorMoon Plugin Maker 4.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Rainbow How can i add my private server in unranked? Geded12 6 10,482 12-06-2025, 08:25
Last Post: jackey78
  [Release] Windows 8.1 Fix for MW3 Server Addon master131 16 30,727 09-29-2014, 23:08
Last Post: SuperNovaAO
Brick [Release] MW3 Server Administration Addon iRoNinja 5 10,844 11-10-2013, 15:46
Last Post: Casper
Exclamation Help cmdlist, dvarlist server crash Nerus 17 16,409 11-09-2013, 23:54
Last Post: Nerus
Wink Plugin with !ban !kick and !tampban clemi555 3 6,492 11-09-2013, 09:21
Last Post: clemi555
  AntiNoScope Plugin clemi555 5 7,592 11-08-2013, 19:13
Last Post: clemi555
  Our Level Fastfile is Different from the Server. CheeseToast 6 15,492 11-03-2013, 17:52
Last Post: CheeseToast
  Dedicated Server External (public) IP Nerus 3 9,542 11-02-2013, 14:16
Last Post: Casper
  [Release] Bunker Plugin 1.3 archit 68 55,806 10-30-2013, 11:59
Last Post: clacki
  MW3 Server Version superg1973 7 17,462 10-28-2013, 01:15
Last Post: kotyra972

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.