Exemplo n.º 1
0
 void OnServerInitialized()
 {
     m_Instance = this;
     InitPositionsOfMonuments();
     LoadDefaultConfig();
     timer.Every(Timeout, () =>
     {
         if (Player.Players.Count < MinimumOnline)
         {
             this.Broadcast("ONLINE.MIN", MinimumOnline);
             return;
         }
         RunPromocodeEvent();
     });
     timer.Every(1f, OnPromocodePlayerMove);
     timer.Every(SpamTimeout, SpamEventMessage);
 }
Exemplo n.º 2
0
 private void Init()
 {
     _instance = this;
     _promocodeGroups.ForEach(p => p.FillCodes());
 }