Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Drawing;
- using System.IO;
- using System.Windows.Forms;
- using GTA;
- using GTA.Native;
- using GTA.Math;
- using Font = GTA.Font;
- namespace RobbableStores
- {
- public class RobbableStores : Script
- {
- private ScriptSettings KeysData;
- List<Vector3> Store_Locations = new List<Vector3>();
- List<Vector3> YellowJacket_Location = new List<Vector3>();
- bool ShowBlips;
- public RobbableStores()
- {
- Store_Locations.Add(new Vector3(1735.83f, 6419.51f, 35.0373f));
- Store_Locations.Add(new Vector3(1960.42f, 3748.89f, 32.3438f));
- Store_Locations.Add(new Vector3(2682.55f, 3282.32f, 55.24f));
- Store_Locations.Add(new Vector3(1700.17f, 4927.65f, 46.93f));
- Store_Locations.Add(new Vector3(-2974.73f, 390.80f, 22.50f));
- Store_Locations.Add(new Vector3(1138.54f, -951.40f, 50.16f));
- Store_Locations.Add(new Vector3(29.15f, -1344.53f, 36.23f));
- Store_Locations.Add(new Vector3(-1224.34f, -905.99f, 19.47f));
- Store_Locations.Add(new Vector3(1394.169189f, 3599.860107f, 34.012100f));
- Store_Locations.Add(new Vector3(-3038.908203f, 589.518677f, 6.904800f));
- Store_Locations.Add(new Vector3(-3240.316895f, 1004.433411f, 11.830700f));
- Store_Locations.Add(new Vector3(544.280212f, 2672.811279f, 41.156601f));
- Store_Locations.Add(new Vector3(2559.247070f, 385.526611f, 107.623001f));
- Store_Locations.Add(new Vector3(376.653290f, 323.647095f, 102.566399f));
- Store_Locations.Add(new Vector3(1166.391968f, 2703.504150f, 37.157299f));
- Store_Locations.Add(new Vector3(-2973.261719f, 390.818390f, 14.043300f));
- Store_Locations.Add(new Vector3(-1491.056519f, -383.572815f, 39.170601f));
- Store_Locations.Add(new Vector3(1698.808472f, 4929.197754f, 41.078300f));
- Store_Locations.Add(new Vector3(-711.721008f, -916.696472f, 18.214500f));
- Store_Locations.Add(new Vector3(-53.124001f, -1756.405396f, 28.421000f));
- Store_Locations.Add(new Vector3(1159.542114f, -326.698608f, 67.922997f));
- Store_Locations.Add(new Vector3(-1822.286621f, 788.005981f, 137.185898f));
- YellowJacket_Location.Add(new GTA.Math.Vector3(1986.1240234375f, 3053.8747558594f, 47.215171813965f));
- KeysData = ScriptSettings.Load("scripts//RobbableStores.ini");
- ShowBlips = KeysData.GetValue<bool>("settings", "ShowBlips", false);
- Blip[] blips = World.GetActiveBlips();
- if (blips.Count() > 0)
- {
- for (int i2 = 0; i2 < blips.Count(); i2++)
- {
- for (int i = 0; i < Store_Locations.Count; i++)
- {
- if (blips[i2].Position == Store_Locations[i])
- {
- blips[i2].Remove();
- }
- }
- }
- }
- if (blips.Count() > 0)
- {
- for (int i2 = 0; i2 < blips.Count(); i2++)
- {
- for (int i = 0; i < YellowJacket_Location.Count; i++)
- {
- if (blips[i2].Position == YellowJacket_Location[i])
- {
- blips[i2].Remove();
- }
- }
- }
- }
- if (ShowBlips)
- {
- for (int i = 0; i < Store_Locations.Count; i++)
- {
- Blip b = World.CreateBlip(Store_Locations[i]);
- b.Sprite = BlipSprite.Store;
- b.Color = BlipColor.Green;
- b.IsShortRange = true;
- b.Name = "24/7 Store";
- }
- }
- {
- for (int i = 0; i < YellowJacket_Location.Count; i++)
- {
- Blip b = World.CreateBlip(YellowJacket_Location[i]);
- b.Sprite = BlipSprite.Bar;
- b.Color = BlipColor.Yellow;
- b.IsShortRange = true;
- b.Name = "Yellow Jacket";
- }
- }
- }
- }
- }
- // © Copyright Lucifer 2018, All Rights Reserved.
- // Don't edit without my permission.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement