Exemple #1
0
        public ExampleScript()
        {
            ifruit = new CustomiFruit()
            {
                SelectButtonColor = System.Drawing.Color.Orange,
                ReturnButtonColor = System.Drawing.Color.LimeGreen,
                KeypadButtonColor = System.Drawing.Color.Purple
            };

            var contact = new iFruitContact("Spawn Adder", 10);

            contact.Selected += (sender, args) => Scripts.SpawnVehicle("ADDER", Game.Player.Character.Position);
            ifruit.Contacts.Add(contact);
            contact           = new iFruitContact("Teleport to Waypoint", 11);
            contact.Selected += (sender, args) => Scripts.TeleportToWaypoint();
            ifruit.Contacts.Add(contact);
            this.Tick += OnTick;
        }
Exemple #2
0
 private void Contact_Answered(iFruitContact contact)
 {
     Scripts.SpawnVehicle("ADDER");
     UI.Notify("Your Adder has been delivered!");
 }