Exemple #1
0
        void TestScript1_Tick(object sender, EventArgs e)
        {
            Pickup.CreatePickup(new Vector3(1.23f, 1.23f, 1.23f), WeaponID.Assault_AK47, 500);

            if (myPed == null)
            {
                myPed        = World.CreatePed(PedID.WFYSEX, Player.Character.Position.Around(10), 23);
                myBlip       = Blip.AddBlip(myPed);
                myBlip.Color = BlipColor.Pickup;

                Player.Character.Weapons[WeaponID.Assault_M4].Load();
                Player.Character.Weapons[WeaponID.Assault_M4].Ammo = 200;
                Player.Character.Weapons[WeaponID.Assault_M4].Select();
            }

            if (!myPed.IsAlive)
            {
                myBlip.Delete();
                myPed = null;
            }
        }
 internal static void Unregister(Pickup pickup)
 {
     _unregisteredPickups.Add(pickup);
 }
Exemple #3
0
 public static Blip AddBlip(Pickup pickup)
 {
     return(Internal.Function.Call <Blip>(0x03dc, pickup));
 }
Exemple #4
0
 internal static void Unregister(Pickup pickup)
 {
     _unregisteredPickups.Add(pickup);
 }
Exemple #5
0
 public static Blip AddBlip(Pickup pickup)
 {
     return Internal.Function.Call<Blip>(0x03dc, pickup);
 }
 public MyEntity(Pickup p)
 {
     pickup = p;
     entityType = EntityType.Pickup;
 }