AutoStart Tournament

01/08/2010 14:27 N¡ghtMare ?? WooT#16
#REMOVED
01/10/2010 01:44 N¡ghtMare ?? WooT#17
Code:
System.Timers.Timer cTimer = new System.Timers.Timer(1000.0);
cTimer.Start();
cTimer.Elapsed += delegate{  StartTournament();  };
void StartTournament()
{
      if(DateTime.Now == <YourValue>)
      {
           public static bool GW = true;
      }
}
Here is an example.
How can i do it then? ;D
It need to be like:
Code:
System.Timers.Timer cTimer = new System.Timers.Timer(1000.0);
cTimer.Start();
cTimer.Elapsed += delegate{  StartTournament();  };
void StartTournament()
{
      if(DateTime.Now == <YourValue>)
      {
           [COLOR="Orange"]public static void GW = true;[/COLOR]
      }
}
01/10/2010 02:50 pro4never#18
So I may have never done much with timers but why would you need it to be a void? Seeing as you are using a true/false value wouldn't a bool be just fine?

*note* this does not apply for a tournament particularly but as demonstrated through random events on Qo (lol...) you should always check if an event is already activated (again, if it's only every 45 minutes you won't run into an issue but lets say you have a random event system... you really don't want events stacking up from time to time)

Just something to consider when doing events... seriously... Qo had that problem for a while where if two double exp events triggered it would double the exp multiple times and the server ended up with like 100x exp rates making everyone max lvl... funny but rollbacks are never that fun
01/10/2010 23:48 copz1337#19
I don't know why people want tournament that Auto start with a timer because it's not likely that there server is online 24/7. I think /cmd start is better for non 24/7 online servers, unless they have both auto-start and /cmd oh well
01/11/2010 09:01 D0OM#20
i need the file which make DeathMatch and this Tournaments
how to get it please if any one know tye it here
01/11/2010 12:25 N¡ghtMare ?? WooT#21
Quote:
Originally Posted by copz1337 View Post
I don't know why people want tournament that Auto start with a timer because it's not likely that there server is online 24/7. I think /cmd start is better for non 24/7 online servers, unless they have both auto-start and /cmd oh well
It will be 24/7