حصريا و منتي انا و بس شغل خلية سيرفرك فية ليل و نهار اوتوماتيك

الموضوع في 'منتدى سورسات كونكر تهيس' بواسطة Mark.0nline, بتاريخ ‏5 أكتوبر 2012.

  1. Mark.0nline

    Mark.0nline Active Member

    حصريا و منتي انا و بس شغل خلية سيرفرك فية ليل و نهار اوتوماتيك

    40ايجى5

    • الشرح
    هتخشو على ملف Program.cs وتدور على الكود ده






    كود:
    Time32 Now = Time32.Now;             foreach (Client.GameState client in Values)             {                 if (client.Socket.Connected)                 {                     if (client.Entity.HandleTiming)                     {   
    وضيف ده تحتو

    كود:
    #region Weather                          #region Rain System                         foreach (Client.GameState clients in Server.....Kernel.GamePool.Values)                             if (DateTime.Now.Minute == 10 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)                             {                                 Conquer_Online_Server.Network.GamePackets.Weather weather = new Conquer_Online_Server.Network.GamePackets.Weather(true);                                 weather.WeatherType = Conquer_Online_Server.Network.GamePackets.Weather.Rain;                                 weather.Direction = 255;                                 weather.Appearence = 255;                                 weather.Intensity = 255;                                 weather.Send(clients);                                 Server.....Kernel.SendWorldMessage(new Network.GamePackets.Message("Rain system activated", System.Drawing.Color.Red, Network.GamePackets.Message.Center), Server.....Kernel.GamePool.Values);                               }                          #endregion                         #region Snow System                         foreach (Client.GameState clients in Server.....Kernel.GamePool.Values)                             if (DateTime.Now.Minute == 20 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)                             {                                 Conquer_Online_Server.Network.GamePackets.Weather weather = new Conquer_Online_Server.Network.GamePackets.Weather(true);                                 weather.WeatherType = Conquer_Online_Server.Network.GamePackets.Weather.Snow;                                 weather.Direction = 255;                                 weather.Appearence = 255;                                 weather.Intensity = 255;                                 weather.Send(clients);                                 Server.....Kernel.SendWorldMessage(new Network.GamePackets.Message("Snow system activated", System.Drawing.Color.Red, Network.GamePackets.Message.Center), Server.....Kernel.GamePool.Values);                              }                          #endregion                         #region AutumnLeaves                         foreach (Client.GameState clients in Server.....Kernel.GamePool.Values)                             if (DateTime.Now.Minute == 30 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)                             {                                 Conquer_Online_Server.Network.GamePackets.Weather weather = new Conquer_Online_Server.Network.GamePackets.Weather(true);                                 weather.WeatherType = Conquer_Online_Server.Network.GamePackets.Weather.AutumnLeaves;                                 weather.Direction = 255;                                 weather.Appearence = 255;                                 weather.Intensity = 255;                                 weather.Send(clients);                                 Server.....Kernel.SendWorldMessage(new Network.GamePackets.Message("AutumnLeaves system activated", System.Drawing.Color.Red, Network.GamePackets.Message.Center), Server.....Kernel.GamePool.Values);                               }                          #endregion                         #region CherryBlossomPetals                         foreach (Client.GameState clients in Server.....Kernel.GamePool.Values)                             if (DateTime.Now.Minute == 40 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)                             {                                 Conquer_Online_Server.Network.GamePackets.Weather weather = new Conquer_Online_Server.Network.GamePackets.Weather(true);                                 weather.WeatherType = Conquer_Online_Server.Network.GamePackets.Weather.CherryBlossomPetals;                                 weather.Direction = 255;                                 weather.Appearence = 255;                                 weather.Intensity = 255;                                 weather.Send(clients);                                 Server.....Kernel.SendWorldMessage(new Network.GamePackets.Message("CherryBlossomPetals system activated", System.Drawing.Color.Red, Network.GamePackets.Message.Center), Server.....Kernel.GamePool.Values);                              }                          #endregion                         #region Rain System                         foreach (Client.GameState clients in Server.....Kernel.GamePool.Values)                             if (DateTime.Now.Minute == 50 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)                             {                                 Conquer_Online_Server.Network.GamePackets.Weather weather = new Conquer_Online_Server.Network.GamePackets.Weather(true);                                 weather.WeatherType = Conquer_Online_Server.Network.GamePackets.Weather.Rain;                                 weather.Direction = 255;                                 weather.Appearence = 255;                                 weather.Intensity = 255;                                 weather.Send(clients);                                 Server.....Kernel.SendWorldMessage(new Network.GamePackets.Message("Rain system activated", System.Drawing.Color.Red, Network.GamePackets.Message.Center), Server.....Kernel.GamePool.Values);                               }                          #endregion                         #region Snow System                         foreach (Client.GameState clients in Server.....Kernel.GamePool.Values)                             if (DateTime.Now.Minute == 60 && DateTime.Now.Second == 0 || DateTime.Now.Minute == 00 && DateTime.Now.Second == 00)                             {                                 Conquer_Online_Server.Network.GamePackets.Weather weather = new Conquer_Online_Server.Network.GamePackets.Weather(true);                                 weather.WeatherType = Conquer_Online_Server.Network.GamePackets.Weather.Snow;                                 weather.Direction = 255;                                 weather.Appearence = 255;                                 weather.Intensity = 255;                                 weather.Send(clients);                                 Server.....Kernel.SendWorldMessage(new Network.GamePackets.Message("Snow system activated", System.Drawing.Color.Red, Network.GamePackets.Message.Center), Server.....Kernel.GamePool.Values);                              }                          #endregion                          #endregion 
    40ايجى5
    Mark.Online
    WwW.EgyNT.NeT
     
  2. MohameD

    MohameD .:: C.E.O ::. طاقم الإدارة

    رد: حصريا و منتي انا و بس شغل خلية سيرفرك فية ليل و نهار اوتوماتيك

    اشكرك على لموضوع
    وفى انتظار جديد وتميزك على صفحات ايجى نت
    40ايجى5
     
  3. kingkama

    kingkama Guest

    رد: حصريا و منتي انا و بس شغل خلية سيرفرك فية ليل و نهار اوتوماتيك

    مشكور يانجم علي مواضيعك
    في انتظار الجديد :)