using System.Reflection; using System; namespace Oxide.Plugins { [Info("KillNpcFromCh47", "KpucTaJl", "1.0.0")] internal class KillNpcFromCh47 : RustPlugin { private void OnEntitySpawned(CH47HelicopterAIController ch47) { if (ch47 == null) return; MethodInfo mi = ch47.GetType().GetMethod("CheckSpawnScientists", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); if (mi == null) return; Action action = (Action)Delegate.CreateDelegate(typeof(Action), ch47, mi); ch47.CancelInvoke(action); } } }