Update Announcement
Well i was bored so i made this little code which i think will help you as well as plugin users to know if any update arrived so it will be easy for them to update as well as for you also.
Code:
using System;
using System.Collections.Generic;
using System.Text;
using Addon;
using System.Threading;
using System.Net;
namespace announcement
{
public class announcement : CPlugin
{
public void update()
{
while (true)
{
WebClient client = new WebClient();
string current_version = "1.02";
string str;
str = client.DownloadString("http://www.yoursite.com/text.txt");
if (str != current_version)
ServerSay("your update text", false);
Thread.Sleep(90000);
}
}
public override void OnServerLoad()
{
new Thread(new ThreadStart(update)).Start();
}
}
}


![[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]](http://roflsaurus.com/users/public/r212360a129ce9b84444093b6cd2699013a1fbn155.png)
