Beispiel #1
0
 public void OnSummonVehicle(SummonVehicleEvent ev)
 {
     if (GamemodeManager.GamemodeManager.GetCurrentMode().Equals(plugin))
     {
         ev.AllowSummon = false;
     }
 }
Beispiel #2
0
 public void OnSummonVehicle(SummonVehicleEvent ev)
 {
     if (plugin.Active)
     {
         ev.AllowSummon = false;
     }
 }
 /// <summary>
 /// Called when a van/chopper is summoned.
 /// </summary>
 public void OnSummonVehicle(SummonVehicleEvent ev)
 {
     if (ev.IsCI)
     {
         this.plugin.SendMessage(Config.GetArray("channels.onsummonvehicle.chaos"), "environment.onsummonvehicle.chaos");
     }
     else
     {
         this.plugin.SendMessage(Config.GetArray("channels.onsummonvehicle.mtf"), "environment.onsummonvehicle.mtf");
     }
 }
Beispiel #4
0
 public void OnSummonVehicle(SummonVehicleEvent ev)
 {
     if (!ev.AllowSummon)
     {
         foreach (Player player in plugin.pluginManager.Server.GetPlayers())
         {
             if (player.TeamRole.Team == Team.TUTORIAL)
             {
                 ev.AllowSummon = true;
                 return;
             }
         }
     }
 }
        public void OnSummonVehicle(SummonVehicleEvent ev)
        {
            /// <summary>
            /// Called when a van/chopper is summoned.
            /// </summary>

            if (ev.IsCI)
            {
                plugin.SendMessage(Config.GetArray("channels.onsummonvehicle.chaos"), "environment.onsummonvehicle.chaos");
            }
            else
            {
                plugin.SendMessage(Config.GetArray("channels.onsummonvehicle.mtf"), "environment.onsummonvehicle.mtf");
            }
        }
Beispiel #6
0
 void IEventHandlerSummonVehicle.OnSummonVehicle(SummonVehicleEvent ev)
 {
     send(ev, new IdMapping());
 }