public void OnSummonVehicle(SummonVehicleEvent ev) { if (GamemodeManager.GamemodeManager.GetCurrentMode().Equals(plugin)) { ev.AllowSummon = false; } }
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"); } }
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"); } }
void IEventHandlerSummonVehicle.OnSummonVehicle(SummonVehicleEvent ev) { send(ev, new IdMapping()); }